SELECT rating_value, COUNT(1) count FROM cscart_product_reviews WHERE `product_id` = 1561 AND `status` = 'A' GROUP BY rating_value
{ "query_block": { "select_id": 1, "table": { "message": "Impossible WHERE noticed after reading const tables" } } }