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 = 'ru' 
WHERE 
  cscart_images_links.object_type = 'product' 
  AND cscart_images_links.type = 'A' 
  AND cscart_images_links.object_id IN (
    2408, 2397, 2394, 2402, 2401, 2399, 2398, 
    2596, 2543, 2542, 1744, 2410
  ) 
ORDER BY 
  cscart_images_links.position, 
  cscart_images_links.pair_id

Query time 0.00113

JSON explain

{
  "query_block": {
    "select_id": 1,
    "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": 37,
          "filtered": 100,
          "index_condition": "cscart_images_links.object_type = 'product' and cscart_images_links.`type` = 'A' and cscart_images_links.object_id in (2408,2397,2394,2402,2401,2399,2398,2596,2543,2542,1744,2410)"
        }
      }
    },
    "table": {
      "table_name": "cscart_images",
      "access_type": "eq_ref",
      "possible_keys": ["PRIMARY"],
      "key": "PRIMARY",
      "key_length": "4",
      "used_key_parts": ["image_id"],
      "ref": ["noframes_kz_new.cscart_images_links.detailed_id"],
      "rows": 1,
      "filtered": 100,
      "attached_condition": "trigcond(cscart_images_links.detailed_id = cscart_images.image_id)"
    },
    "table": {
      "table_name": "cscart_common_descriptions",
      "access_type": "eq_ref",
      "possible_keys": ["PRIMARY"],
      "key": "PRIMARY",
      "key_length": "107",
      "used_key_parts": ["object_id", "lang_code", "object_holder"],
      "ref": ["noframes_kz_new.cscart_images.image_id", "const", "const"],
      "rows": 1,
      "filtered": 100,
      "attached_condition": "trigcond(cscart_common_descriptions.object_id = cscart_images.image_id and cscart_common_descriptions.object_holder = 'images' and cscart_common_descriptions.lang_code = 'ru' and trigcond(cscart_images.image_id is not null))"
    }
  }
}

Result

image_id image_path image_x image_y is_high_res rf_original pair_id object_id object_type detailed_id type position alt images_image_id
0 IMG_20240819_153249_crop.jpg 1340 890 N IMG_20240819_153249_crop.jpg 10934 2408 product 9141 A 2 9141
0 IMG_20240819_152606_crop.jpg 1340 890 N IMG_20240819_152606_crop.jpg 10935 2408 product 9142 A 3 9142
0 DSC_7521-fotor-20240818212811_crop_azdl-2w.jpg 1340 890 N DSC_7521-fotor-20240818212811_crop_azdl-2w.jpg 10897 2542 product 9104 A 4 9104
0 DSC_6883__crop.jpg 1340 890 N DSC_6883__crop.jpg 10915 2410 product 9122 A 4 9122
0 DSC_6813_-fotor-20240729165353_crop.jpg 1340 890 N DSC_6813_-fotor-20240729165353_crop.jpg 10920 2543 product 9127 A 4 9127
0 DSC_6310--fotor-20240819183730_crop.jpg 1340 890 N DSC_6310--fotor-20240819183730_crop.jpg 10946 2394 product 9153 A 4 9153
0 IMG_20240819_145448_crop.jpg 1340 890 N IMG_20240819_145448_crop.jpg 10963 2397 product 9170 A 4 9170
0 Pebbles_худ_фото-fotor-20240821121336_crop.jpg 1340 890 N Pebbles_худ_фото-fotor-20240821121336_crop.jpg 10968 2399 product 9175 A 4 9175
0 PRISMATIC1_crop.jpg 1340 890 N PRISMATIC1_crop.jpg 10982 2401 product 9189 A 4 9189
0 SHALE--1.jpg 1340 890 N SHALE--1.jpg 10986 2402 product 9193 A 4 9193
0 DSC_7526-fotor-20240818214650_crop_nvnx-hl.jpg 1340 890 N DSC_7526-fotor-20240818214650_crop_nvnx-hl.jpg 10898 2542 product 9105 A 5 9105
0 DSC_6939-fotor-20240821113230_crop.jpg 1340 890 N DSC_6939-fotor-20240821113230_crop.jpg 10916 2410 product 9123 A 5 9123
0 DSC_6816-Pano__crop.jpg 1340 890 N DSC_6816-Pano__crop.jpg 10921 2543 product 9128 A 5 9128
0 DSC_6332-fotor-20240819182633_crop.jpg 1340 890 N DSC_6332-fotor-20240819182633_crop.jpg 10947 2394 product 9154 A 5 9154
0 IMG_20240819_150647_crop.jpg 1340 890 N IMG_20240819_150647_crop.jpg 10964 2397 product 9171 A 5 9171
0 Pebbles_складка_-fotor-2024082112655_crop.jpg 1340 890 N Pebbles_складка_-fotor-2024082112655_crop.jpg 10969 2399 product 9176 A 5 9176
0 PRISMATIC2_crop.jpg 1340 890 N PRISMATIC2_crop.jpg 10983 2401 product 9190 A 5 9190
0 SHALE--2.jpg 1340 890 N SHALE--2.jpg 10987 2402 product 9194 A 5 9194
0 2_crop_c0cf-ay.jpg 1340 890 N 2_crop_c0cf-ay.jpg 10795 1744 product 9002 A 6 9002
0 DSC_7550-fotor-20240818214234_crop_zajf-y1.jpg 1340 890 N DSC_7550-fotor-20240818214234_crop_zajf-y1.jpg 10899 2542 product 9106 A 6 9106
0 DSC_6975_crop.jpg 1340 890 N DSC_6975_crop.jpg 10917 2410 product 9124 A 6 9124
0 DSC_6883__crop_vup6-2o.jpg 1340 890 N DSC_6883__crop_vup6-2o.jpg 10922 2543 product 9129 A 6 9129
0 DSC_6379-fotor-2024081918416_crop.jpg 1340 890 N DSC_6379-fotor-2024081918416_crop.jpg 10948 2394 product 9155 A 6 9155
0 IMG_20240819_151345_crop.jpg 1340 890 N IMG_20240819_151345_crop.jpg 10965 2397 product 9172 A 6 9172
0 IMG_20240818_231643_crop.jpg 1340 890 N IMG_20240818_231643_crop.jpg 10970 2399 product 9177 A 6 9177
0 PRISMATIC3_crop.jpg 1340 890 N PRISMATIC3_crop.jpg 10984 2401 product 9191 A 6 9191
0 SHALE--3.jpg 1340 890 N SHALE--3.jpg 10988 2402 product 9195 A 6 9195
0 NORDIC_OCEAN1.jpg 1340 881 N NORDIC_OCEAN1.jpg 11017 2398 product 9224 A 6 9224
0 granite_2_crop.jpg 1340 890 N granite_2_crop.jpg 10796 1744 product 9003 A 7 9003
0 DSC_7657-fotor-2024081822532_crop_fw9o-ws.jpg 1340 890 N DSC_7657-fotor-2024081822532_crop_fw9o-ws.jpg 10900 2542 product 9107 A 7 9107
0 Elegant_складка-fotor-20240821113054_crop.jpg 1340 890 N Elegant_складка-fotor-20240821113054_crop.jpg 10918 2410 product 9125 A 7 9125
0 DSC_6916-fotor-20240729165130_crop.jpg 1340 890 N DSC_6916-fotor-20240729165130_crop.jpg 10923 2543 product 9130 A 7 9130
0 DSC_8624-fotor-2024081915382_crop.jpg 1340 890 N DSC_8624-fotor-2024081915382_crop.jpg 10936 2408 product 9143 A 7 9143
0 Lama_складка-fotor-20240821115254_crop.jpg 1340 890 N Lama_складка-fotor-20240821115254_crop.jpg 10949 2394 product 9156 A 7 9156
0 Mosaic_складка-fotor-2024082112352_crop.jpg 1340 890 N Mosaic_складка-fotor-2024082112352_crop.jpg 10966 2397 product 9173 A 7 9173
0 SHALE--4.jpg 1340 890 N SHALE--4.jpg 10989 2402 product 9196 A 7 9196
0 NORDIC_OCEAN2_crop.jpg 1340 890 N NORDIC_OCEAN2_crop.jpg 11018 2398 product 9225 A 7 9225
0 DSC_2063-fotor-2024080216650_crop_kg28-xi.jpg 1340 890 N DSC_2063-fotor-2024080216650_crop_kg28-xi.jpg 10690 2596 product 8897 A 8 8897
0 granite_3_crop.jpg 1340 890 N granite_3_crop.jpg 10797 1744 product 9004 A 8 9004
0 DSC_7762-fotor-20240818222515_crop_kei5-67.jpg 1340 890 N DSC_7762-fotor-20240818222515_crop_kei5-67.jpg 10901 2542 product 9108 A 8 9108
0 DSC_7009_crop.jpg 1340 890 N DSC_7009_crop.jpg 10924 2543 product 9131 A 8 9131
0 Grigio_2-fotor-2024082111433_crop.jpg 1340 890 N Grigio_2-fotor-2024082111433_crop.jpg 10937 2408 product 9144 A 8 9144
0 NORDIC_OCEAN3.jpg 1340 893 N NORDIC_OCEAN3.jpg 11019 2398 product 9226 A 8 9226
0 DSC_2109=-fotor-2024080216345_crop_gnyc-rq.jpg 1340 890 N DSC_2109=-fotor-2024080216345_crop_gnyc-rq.jpg 10691 2596 product 8898 A 9 8898
0 DSC_7787-fotor-20240818221825_crop_1pff-b0.jpg 1340 890 N DSC_7787-fotor-20240818221825_crop_1pff-b0.jpg 10902 2542 product 9109 A 9 9109
0 Elegant_складка-fotor-20240821113054_crop_a902-m0.jpg 1340 890 N Elegant_складка-fotor-20240821113054_crop_a902-m0.jpg 10925 2543 product 9132 A 9 9132
0 Grigio_3-fotor-20240821115034_crop.jpg 1340 890 N Grigio_3-fotor-20240821115034_crop.jpg 10938 2408 product 9145 A 9 9145
0 DSC_2157=-fotor-2024080216733_crop_s1n4-jk.jpg 1340 890 N DSC_2157=-fotor-2024080216733_crop_s1n4-jk.jpg 10692 2596 product 8899 A 10 8899
0 Botanicа_складка-fotor-20240821111955_crop_4puq-am.jpg 1340 890 N Botanicа_складка-fotor-20240821111955_crop_4puq-am.jpg 10903 2542 product 9110 A 10 9110
0 antique_2_n6qs-am.jpg 1340 893 N antique_2_n6qs-am.jpg 10693 2596 product 8900 A 11 8900
0 anique_3_on10-cd.jpg 1340 893 N anique_3_on10-cd.jpg 10694 2596 product 8901 A 12 8901