SELECT
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'
WHERE
a.product_id IN (
584, 573, 561, 556, 553, 549, 545, 541,
525, 521, 517, 513, 507, 497, 492, 489,
486, 482, 455, 453, 452, 451, 450, 449,
448, 447, 446, 445, 444, 443, 442, 394,
378, 377, 371, 369, 368, 362, 228, 219,
218, 217, 212, 211, 210, 209, 207, 206
)
AND a.status = 'A'
ORDER BY
a.position