SELECT
netting_images.*,
netting_images_links.*,
netting_common_descriptions.description AS alt,
netting_images.image_id AS images_image_id
FROM
netting_images_links
LEFT JOIN netting_images ON netting_images_links.image_id = netting_images.image_id
LEFT JOIN netting_common_descriptions ON netting_common_descriptions.object_id = netting_images.image_id
AND netting_common_descriptions.object_holder = 'images'
AND netting_common_descriptions.lang_code = 'en'
WHERE
netting_images_links.object_type = 'category_banner'
AND netting_images_links.type = 'M'
AND netting_images_links.object_id IS NULL
ORDER BY
netting_images_links.position,
netting_images_links.pair_id