SELECT
c.product_id AS cur_product_id,
a.*,
b.option_name,
b.internal_option_name,
b.option_text,
b.description,
b.inner_hint,
b.incorrect_message,
b.comment
FROM
cscart_product_options as a
LEFT JOIN cscart_product_options_descriptions as b ON a.option_id = b.option_id
AND b.lang_code = 'en'
LEFT JOIN cscart_product_global_option_links as c ON c.option_id = a.option_id
WHERE
c.product_id IN (
4340, 2364, 13765, 13826, 13993, 2218,
2349, 2178, 2177, 11786, 2827, 2640,
2312, 2309, 2310, 2311, 3236, 4344,
3221, 3225, 3218, 3246, 3222, 4347,
3242, 12675, 11361, 12647, 12880, 12670
)
AND a.product_id = 0
AND a.status = 'A'
ORDER BY
a.position