SELECT
product_review_id
FROM
cscart_product_reviews
LEFT JOIN cscart_users ON cscart_product_reviews.reply_user_id = cscart_users.user_id
LEFT JOIN cscart_companies ON cscart_users.company_id = cscart_companies.company_id
LEFT JOIN cscart_country_descriptions ON cscart_product_reviews.country_code = cscart_country_descriptions.code
AND cscart_country_descriptions.lang_code = 'en'
WHERE
1
AND cscart_product_reviews.product_id IN (
45574, 45834, 45833, 45832, 45831, 45830,
45829, 45828, 45827, 45826, 45825,
45824, 45823, 45822, 45821, 45820,
45819, 45818, 45817, 45816, 45835,
45836, 45837, 45838, 45839, 45840,
45841, 45842, 45843, 45844, 45845,
45846, 45847, 45848, 45849, 45850,
45851, 45852, 45853, 45854
)
AND cscart_product_reviews.status = 'A'
GROUP BY
cscart_product_reviews.product_review_id