SELECT
c.product_id AS cur_product_id,
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 = 'fr'
LEFT JOIN cscart_product_global_option_links as c ON c.option_id = a.option_id
INNER JOIN cscart_ult_objects_sharing ON (
cscart_ult_objects_sharing.share_object_id = a.option_id
AND cscart_ult_objects_sharing.share_company_id = 1
AND cscart_ult_objects_sharing.share_object_type = 'product_options'
)
WHERE
c.product_id IN (
10975, 5759, 1925, 11317, 10974, 11013,
11023, 11027, 11315, 11314, 11313,
11312, 11036, 11073, 11089, 11309,
11302, 10884, 11300, 11256, 11257,
11316, 10830, 11286, 11285, 11284,
11283, 3875, 11282, 10638, 10870, 11031,
11030, 10738, 11253, 11025, 11267,
11266, 11265, 11264, 11263, 11262,
11259, 11261, 10848, 10979, 11012,
11024, 11090, 11234, 11235, 11258,
11254, 11269, 10333, 11015, 11018,
11019, 11238, 11251, 11307, 11308,
11002, 10335
)
AND a.product_id = 0
AND a.status = 'A'
ORDER BY
a.position