syntax error: select count(id) AS numrows FROM table_product where