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 ')) and
hienthi=1 and type='nha-dat' order by stt,id desc' at line 2syntax error: select id,ten as ten,thumb,photo,tenkhongdau,diachi,mattien,vitri,type,id_city,id_dist
,dientich from table_product where (id in ()) and
hienthi=1 and type='nha-dat' order by stt,id desc