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 = 'ja'
WHERE
a.product_id IN (
187, 312419, 312881, 436374, 441927,
437733, 433372, 429338, 404315, 403114,
434319, 455492, 457298, 426898, 435154,
454872, 429201, 431252, 460123, 456772,
447624, 418357, 417083, 423074, 422315,
445550, 413493, 406571, 419858, 437062,
428608, 440002, 420919, 454421, 413105,
439177, 437268, 450216, 405994, 437380,
438012, 406160, 440620, 447721, 416159,
420047, 413235, 424041
)
AND a.status = 'A'
ORDER BY
a.position