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.image_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 (
79485, 79484, 79483, 79482, 79481, 79480,
79479, 79473, 79472, 79475, 79474,
78864, 79371, 79362, 78850, 78630,
79249, 79248, 79247, 79243
)
ORDER BY
cscart_images_links.position,
cscart_images_links.pair_id