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 (
5540, 5541, 5542, 5543, 5544, 5545, 5546,
5547, 5548, 5549, 5550, 5551, 5552,
5553, 5554, 5555, 5556, 5557, 5558,
5559, 1457, 5166, 1447, 5156, 5169,
3162, 1450, 5159, 1440, 5149, 1451,
5160, 1441, 5150, 1453, 5162, 1443,
5152, 1770, 1771, 1772, 1773, 1774,
1775, 1776, 1777, 1778, 1779, 1780,
1781, 1782, 1783, 1784, 1785, 1786,
1787, 1788, 1789, 1790, 1791, 1792,
1793, 1794, 1795, 1796, 1797, 1798,
1799, 1800, 1801, 1802, 1803, 1804,
1805, 1806, 1807, 1808, 1809, 1810,
1811, 1812, 1813, 1814, 1815, 1816,
1817, 1818, 1819, 3744, 3745, 3746,
3747, 5461, 5462, 5463, 5464
)
AND cscart_product_review_prepared_data.storefront_id = 0