SELECT rating_value, COUNT(1) count FROM cscart_product_reviews WHERE `product_id` = 51038 AND `status` = 'A' AND `storefront_id` = 1 GROUP BY rating_value
{ "query_block": { "select_id": 1, "message": "no matching row in const table" } }