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,id desc' at line 1syntax error: select id,ten_vi,link,tenkhongdau from table_tags where hienthi=1 and type='tags_product' and id in ( 6,27, ) order by stt,id desc