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 = 'M' 
  AND cscart_images_links.object_id IN (
    13947, 13948, 13949, 13944, 13945, 13941, 
    13942
  ) 
ORDER BY 
  cscart_images_links.position, 
  cscart_images_links.pair_id

Query time 0.00033

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost": 0.053441171,
    "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"],
              "loops": 1,
              "rows": 7,
              "cost": 0.02500104,
              "filtered": 100,
              "index_condition": "cscart_images_links.object_type = 'product' and cscart_images_links.`type` = 'M' and cscart_images_links.object_id in (13947,13948,13949,13944,13945,13941,13942)"
            }
          }
        }
      },
      {
        "table": {
          "table_name": "cscart_images",
          "access_type": "eq_ref",
          "possible_keys": ["PRIMARY"],
          "key": "PRIMARY",
          "key_length": "4",
          "used_key_parts": ["image_id"],
          "ref": ["u508912950_dev_2025.cscart_images_links.detailed_id"],
          "loops": 7,
          "rows": 1,
          "cost": 0.01199548,
          "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": ["u508912950_dev_2025.cscart_images.image_id", "const", "const"],
          "loops": 7,
          "rows": 1,
          "cost": 0.01199548,
          "filtered": 100,
          "attached_condition": "trigcond(cscart_common_descriptions.object_holder = 'images' and cscart_common_descriptions.lang_code = 'en' 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
0 1538-ezgif.com-webp-to-jpg-converter.jpg 1400 1398 N N 21539 13941 product 23324 M 0 23324
0 1538-ezgif.com-webp-to-jpg-converter_x7og-ec.jpg 1400 1398 N N 21542 13942 product 23327 M 0 23327
0 aden_eyebrow_pencil_75_black_114-gr.jpg 1000 1000 N N 21546 13944 product 23331 M 0 23331
0 aden_eyebrow_pencil_76_brown_114-gr-.jpg 1000 1000 N N 21547 13945 product 23332 M 0 23332
0 aden_eyebrow_loose_powder_02_brown_07g.jpg 1000 1000 N N 21549 13947 product 23334 M 0 23334
0 aden_eyebrow_loose_powder_01_light_brown_07g.jpg 1000 1000 N N 21550 13948 product 23335 M 0 23335
0 aden_eyebrow_shadow_powder_05_anthrazite.jpg 1000 1000 N N 21551 13949 product 23336 M 0 23336