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 (
1399, 1400, 1401, 1402, 1403, 1404, 1405,
1406, 1407, 1408, 1409, 1410, 1411,
1412, 1413, 1414, 1415, 1416, 5107,
5108, 5109, 5110, 5111, 5112, 5113,
5114, 5115, 5116, 5117, 5118, 5119,
5120, 5121, 5122, 5123, 5124, 5125,
5126, 5127, 5128, 5129, 5130, 340, 341,
342, 343, 344, 345, 346, 412, 413, 414,
1366, 1367, 1368, 1369, 1370, 1371,
1372, 1373, 1374, 1375, 1376, 1377,
1378, 1379, 1380, 1381, 1382, 1383,
1384, 1385, 1386, 1387, 1388, 1389,
1390, 1391, 1392, 3612, 3613, 3614,
3615, 4224, 4225, 4226, 4227, 4228,
4229, 4230, 5079, 5080, 5081, 5082,
5083, 5084
)
AND cscart_product_review_prepared_data.storefront_id = 0