SELECT
cscart_product_review_prepared_data.product_id AS product_id,
cscart_product_review_prepared_data.average_rating AS average_rating,
cscart_product_review_prepared_data.reviews_count AS reviews_count
FROM
cscart_product_review_prepared_data
WHERE
cscart_product_review_prepared_data.product_id IN (
515, 514, 513, 512, 511, 510, 509, 508,
507, 506, 505, 504, 503, 502, 501, 499,
500, 498, 497, 496, 495, 494, 493, 492,
491, 490, 489, 488, 487, 486, 485, 484,
483, 482, 481, 480, 479, 478, 477, 476,
475, 474, 473, 472, 471, 470, 469, 468
)
AND cscart_product_review_prepared_data.storefront_id = 0