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 = 'pl'
WHERE
a.product_id IN (
1753, 2332, 1875, 1830, 1863, 2036, 2057,
2082, 2138, 2317, 2277, 1925, 1831,
1775, 1932, 2364, 1840, 2163, 2173,
2175, 2177, 2176, 2169, 2191, 2168,
1983, 2302, 1899, 2240, 1910, 1872,
1850, 1883, 1777, 1783, 1852, 1906,
1810, 1851, 2154, 1884, 2156, 1907,
1909, 1908, 1757, 1895, 1800, 2230,
1848, 1977, 1832, 2155, 1862, 2161,
1978, 1902, 1979, 2162, 1890, 1901,
1854, 1833, 1844, 1804, 1756, 1834,
1788, 1809, 1778, 1865, 2160, 1866,
2210, 1765, 1768, 1769, 2180, 2181,
2179
)
AND a.status = 'A'
ORDER BY
a.position