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 = 'ar'
WHERE
a.product_id IN (
422676, 427654, 406498, 438920, 440047,
403424, 402161, 426357, 413770, 421856,
453293, 421836, 444708, 429476, 413127,
407471, 409966, 403355, 408795, 420652,
443583, 442532, 408975, 443876, 402463,
438541, 427151, 454935, 437239, 452456,
406327, 412758, 433230, 415021, 414349,
430686, 451899, 423535, 280, 431133,
406624, 460023, 459938, 403250, 403839,
442555, 457730, 405506
)
AND a.status = 'A'
ORDER BY
a.position