syntax error: select count(id) as numrows from table_product where