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 (
109465, 109886, 109742, 109741, 109740,
109739, 109448, 109447, 109446, 109445,
109444, 109376, 122293, 122292, 122291,
122290, 122289, 122288, 122287, 122286
)
ORDER BY
cscart_images_links.position,
cscart_images_links.pair_id