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 = 'vn' 
WHERE 
  cscart_images_links.object_type = 'promotion' 
  AND cscart_images_links.type = 'M' 
  AND cscart_images_links.object_id IN (21, 22, 23, 24, 25, 16, 17, 18, 19, 20) 
ORDER BY 
  cscart_images_links.position, 
  cscart_images_links.pair_id

Query time 0.00050

JSON explain

{
  "query_block": {
    "select_id": 1,
    "nested_loop": [
      {
        "read_sorted_file": {
          "filesort": {
            "sort_key": "cscart_images_links.position, cscart_images_links.pair_id",
            "table": {
              "table_name": "cscart_images_links",
              "access_type": "range",
              "possible_keys": ["object_id"],
              "key": "object_id",
              "key_length": "81",
              "used_key_parts": ["object_id", "object_type", "type"],
              "rows": 10,
              "filtered": 100,
              "index_condition": "cscart_images_links.object_type = 'promotion' and cscart_images_links.`type` = 'M' and cscart_images_links.object_id in (21,22,23,24,25,16,17,18,19,20)"
            }
          }
        }
      },
      {
        "table": {
          "table_name": "cscart_images",
          "access_type": "eq_ref",
          "possible_keys": ["PRIMARY"],
          "key": "PRIMARY",
          "key_length": "4",
          "used_key_parts": ["image_id"],
          "ref": ["demov2026.cscart_images_links.image_id"],
          "rows": 1,
          "filtered": 100
        }
      },
      {
        "table": {
          "table_name": "cscart_common_descriptions",
          "access_type": "eq_ref",
          "possible_keys": ["PRIMARY"],
          "key": "PRIMARY",
          "key_length": "108",
          "used_key_parts": ["object_id", "lang_code", "object_holder"],
          "ref": ["demov2026.cscart_images.image_id", "const", "const"],
          "rows": 1,
          "filtered": 100,
          "attached_condition": "trigcond(cscart_common_descriptions.object_holder = 'images' and cscart_common_descriptions.lang_code = 'vn' and trigcond(cscart_images.image_id is not null))"
        }
      }
    ]
  }
}

Result

image_id image_path image_x image_y is_high_res transparent pair_id object_id object_type detailed_id type position alt images_image_id
8644 promotion_coupon.jpg 770 471 N N 6915 16 promotion 0 M 0 8644
8640 promotion_10_for_demo.jpg 770 471 N N 6916 17 promotion 0 M 0 8640
8643 promotion_pickup.jpg 770 471 N N 6917 18 promotion 0 M 0 8643
8642 promotion_xbox_one.jpg 770 471 N N 6918 19 promotion 0 M 0 8642
8639 promotion_free_shipping.jpg 770 471 N N 6919 20 promotion 0 M 0 8639
8841 promotion_main_image-1.jpg 660 400 N N 6920 21 promotion 0 M 0 8841
8842 promotion_main_image-2.jpg 660 400 N N 6921 22 promotion 0 M 0 8842
8843 promotion_main_image-3.jpg 660 400 N N 6922 23 promotion 0 M 0 8843
8844 promotion_main_image-4.jpg 660 400 N N 6923 24 promotion 0 M 0 8844
8845 promotion_main_image-5.jpg 660 400 N N 6924 25 promotion 0 M 0 8845