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 (
435351, 456510, 404001, 413818, 442117,
433550, 450230, 439049, 414690, 448070,
414544, 431904, 404473, 422990, 448236,
413068, 425901, 407405, 406178, 437072,
430766, 447574, 460572, 460325, 406193,
451309, 446162, 438117, 439044, 406083,
415033, 460158, 422354, 409660, 453640,
424754, 410340, 417422, 422439, 422004,
421990, 446415, 436834, 440447, 410009,
439533, 411516, 442635, 442715, 430741,
406089, 410471, 409489, 412459, 424229,
448141, 452096, 435935, 450361, 410461,
454777, 444113, 417555, 428819, 454049,
459252, 405167, 401806, 425534, 458860,
447690, 422606, 413386, 442183, 419735,
432464, 440571, 426931, 418909, 439791,
454556, 443028, 452359, 449330, 402443,
418233, 438218, 431841, 439184, 457686,
448158, 426138, 428377, 411651, 455838,
431788
)
AND a.status = 'A'
ORDER BY
a.position