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 = 'en'
WHERE
a.product_id IN (
17,
180,
786967,
230,
231,
18,
16,
4,
5,
23,
24,
170,
1,
22,
149,
3351,
227,
78,
79,
190,
189,
3438,
3439,
3440,
3441,
162,
159,
158,
245,
238,
239,
242,
243,
241,
240,
214,
217,
218,
207,
59,
58,
60,
199,
198,
94,
96,
201,
114,
192,
136,
130,
128,
126,
131,
177,
186,
185,
179,
11,
172,
78822,
134,
135,
195,
233,
168,
167,
169,
205,
152,
160,
74,
73,
71,
75,
72,
108,
237,
191,
235,
70,
122,
115,
156,
90,
175,
196,
104,
76,
3316,
3317,
129,
127,
121,
103,
95,
118256,
182,
41,
56,
57,
30,
112,
246,
89,
197,
208,
173,
97,
229,
211,
210,
209,
67,
25,
116,
213,
215,
226,
154,
53,
52,
118257,
111,
82,
84,
228,
85
)
AND a.status = 'A'
ORDER BY
a.position