syntax error: select count(id) as total from table_rating where id_product=