You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '-12,12' at line 1syntax error: select id,ten as ten,tenkhongdau,type,thumb,photo,masp,gia,giakm from table_product where type='san-pham' and hienthi=1 and noibat=1 order by stt,id desc limit -12,12