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 (
431380, 432643, 430955, 425786, 433168,
420963, 435716, 436514, 419288, 424427,
460521, 414020, 414696, 431630, 420330,
439312, 427057, 405641, 426607, 407640,
409611, 428383, 409077, 440298, 450604,
455510, 402558, 401092, 442722, 442428,
417957, 432262, 452815, 431646, 439685,
440664, 451688, 410924, 423745, 420062,
434608, 446159, 429578, 425486, 423026,
435351, 456510, 404001
)
AND a.status = 'A'
ORDER BY
a.position