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 id_list = and hienthi=1 order by luotxem desc' at line 1syntax error: select ten_vi,id,tenkhongdau,photo,giacu,gia from table_product where id_danhmuc = and id_list = and hienthi=1 order by luotxem desc