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 (
291, 292, 293, 294, 295, 296, 297, 298,
300, 302, 303, 304, 305, 306, 307, 308,
309, 310, 311, 312, 313, 314, 315, 316,
317, 318, 319, 320, 321, 330, 331, 332,
333, 334, 335, 338, 339, 340, 341, 342,
344, 345, 346, 347, 348, 349, 350, 351,
352, 353, 354, 355, 356, 357, 358, 359,
360, 361, 362, 363, 364, 365, 366, 367
)
AND a.status = 'A'
ORDER BY
a.position