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 (
461262, 461261, 461263, 461264, 461265,
461266, 461267, 461268, 461269, 460948,
461036, 461270, 230, 170, 227, 461033,
461242, 190, 461277, 312414, 325, 460946,
312456, 391037, 391032, 391031, 391030,
460955, 242, 243, 241, 240, 460947,
288, 214, 217, 218, 207, 312926, 199,
198, 201, 391002, 390979, 390978, 460951,
114, 192, 391013, 312901, 391014, 390986,
312443, 111835, 111837, 112217, 116529,
116541, 116547, 391009, 131, 177, 186,
185, 179, 400923, 400937, 400971, 391023,
22384, 312928, 312930, 312931, 312929,
312409, 312417, 172, 312421, 390994,
312424, 312425, 312426, 312427, 312428,
312429, 312430, 312431, 312432, 312433,
195, 233, 312854, 312855, 312864, 312852,
312853
)
AND a.status = 'A'
ORDER BY
a.position