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 = 'vn'
WHERE
a.product_id IN (
347, 344, 343, 342, 341, 340, 339, 338,
335, 334, 333, 332, 331, 330, 328, 321,
320, 319, 318, 317, 316, 315, 314, 313,
312, 311, 310, 309, 308, 307, 306, 305,
304, 303, 302, 301, 300, 299, 298, 297,
296, 295, 294, 293, 292, 291
)
AND a.status = 'A'
ORDER BY
a.position