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 (
3150, 1345, 1346, 1347, 1348, 1349, 1350,
1351, 1352, 1353, 1354, 3698, 3699,
3700, 3701, 3702, 3703, 3704, 3705,
3706, 3707, 6723, 6717, 6720, 3151,
3864, 3145, 6721, 3863, 3148, 6718,
6722, 3144, 3147, 3096, 339, 3104, 3107,
6682, 6678, 104, 105, 106, 107, 108,
109, 110, 4013, 4014, 4015, 4016, 4017,
4018, 4019, 3105, 6677, 6686, 64, 118,
224, 225, 285, 3975, 4027, 4108, 4109,
4170, 4223, 203, 204, 205, 206, 207,
208, 209, 4087, 4088, 4089, 4090, 4091,
4092, 4093, 3122, 6675, 6696, 6703,
3118, 3111, 12223, 12224, 3124, 3112,
324, 6704, 6709, 4177
)
AND cscart_product_review_prepared_data.storefront_id = 0