SELECT
cscart_images.*,
cscart_images_links.*,
cscart_common_descriptions.description AS alt,
cscart_images.image_id AS images_image_id
FROM
cscart_images_links
LEFT JOIN cscart_images ON cscart_images_links.detailed_id = cscart_images.image_id
LEFT JOIN cscart_common_descriptions ON cscart_common_descriptions.object_id = cscart_images.image_id
AND cscart_common_descriptions.object_holder = 'images'
AND cscart_common_descriptions.lang_code = 'en'
WHERE
cscart_images_links.object_type = 'product'
AND cscart_images_links.type = 'A'
AND cscart_images_links.object_id IN (
93322, 93321, 93320, 93319, 93318, 93307,
93306, 93304, 93223, 93189, 93095,
93009, 92836, 92462, 92450, 92448,
92447, 92434, 92433, 91822
)
ORDER BY
cscart_images_links.position,
cscart_images_links.pair_id