syntax error 1: SELECT count(id) AS numrows FROM table_product where id_list= and hienthi=1 You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'and hienthi=1' at line 1