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 ') order by stt asc limit 0,20' at line 1syntax error: select id,ten_vi,tenkhongdau,masp,chatlieu_vi,chatlieu_en,trongluong,hieusuat,luotxem,nhanhieu_en,baohanh,nhanhieu_vi,size,mau,thumb,giagoc,hethang,id_item,tietkiem,banchay,hot,giakhuyenmai,noibat,photo,spleft,ghichu,new from table_dienmay where hienthi=1 and id <>'19' and id_cat in() order by stt asc limit 0,20