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 (
    2341, 2408, 2397, 2337, 2394, 2402, 2401, 
    2399, 2345, 2335, 2398, 2596
  ) 
ORDER BY 
  cscart_images_links.position, 
  cscart_images_links.pair_id

Query time 0.00119

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": 34,
          "filtered": 100,
          "index_condition": "cscart_images_links.object_type = 'product' and cscart_images_links.`type` = 'A' and cscart_images_links.object_id in (2341,2408,2397,2337,2394,2402,2401,2399,2345,2335,2398,2596)"
        }
      }
    },
    "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 Antique_Gold6_crop.jpg 1340 890 N Antique_Gold6_crop.jpg 11040 2337 product 9247 A 2 9247
0 IMG_20240819_152606_crop.jpg 1340 890 N IMG_20240819_152606_crop.jpg 10935 2408 product 9142 A 3 9142
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_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 02__1__mq55-eo.jpg 1340 868 N 02__1__mq55-eo.jpg 11032 2341 product 9239 A 5 9239
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 03__1__bkyx-8b.jpg 1340 902 N 03__1__bkyx-8b.jpg 11033 2341 product 9240 A 6 9240
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 04__1__nexh-6j.jpg 1340 897 N 04__1__nexh-6j.jpg 11034 2341 product 9241 A 7 9241
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 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 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 antique_2_n6qs-am.jpg 1340 893 N antique_2_n6qs-am.jpg 10693 2596 product 8900 A 11 8900
0 Antique_Gold2.jpg 1340 895 N Antique_Gold2.jpg 11041 2337 product 9248 A 11 9248
0 anique_3_on10-cd.jpg 1340 893 N anique_3_on10-cd.jpg 10694 2596 product 8901 A 12 8901
0 Antique_Gold4.jpg 1340 893 N Antique_Gold4.jpg 11042 2337 product 9249 A 12 9249
0 Antique_Gold3.jpg 1340 894 N Antique_Gold3.jpg 11043 2337 product 9250 A 13 9250
0 Antique_Gold1.jpg 1340 638 N Antique_Gold1.jpg 11044 2337 product 9251 A 14 9251
0 Pearl1_crop_lyfn-zl.jpg 1340 890 N Pearl1_crop_lyfn-zl.jpg 11065 2345 product 9272 A 21 9272
0 Pearl1_crop.jpg 1340 890 N Pearl1_crop.jpg 11059 2335 product 9266 A 22 9266
0 Pearl2_crop_7p1f-ii.jpg 1340 890 N Pearl2_crop_7p1f-ii.jpg 11066 2345 product 9273 A 22 9273
0 Pearl2_crop.jpg 1340 890 N Pearl2_crop.jpg 11060 2335 product 9267 A 23 9267
0 Pearl3_crop_9m7c-yr.jpg 1340 890 N Pearl3_crop_9m7c-yr.jpg 11067 2345 product 9274 A 23 9274
0 Pearl3_crop.jpg 1340 890 N Pearl3_crop.jpg 11061 2335 product 9268 A 24 9268
0 Pearl4_crop_n54i-97.jpg 1340 890 N Pearl4_crop_n54i-97.jpg 11068 2345 product 9275 A 24 9275
0 Pearl4_crop.jpg 1340 890 N Pearl4_crop.jpg 11062 2335 product 9269 A 25 9269
0 Pearl5_crop_n1oe-lj.jpg 1340 890 N Pearl5_crop_n1oe-lj.jpg 11069 2345 product 9276 A 25 9276
0 Pearl6_crop_59jq-qx.jpg 1340 890 N Pearl6_crop_59jq-qx.jpg 11070 2345 product 9277 A 26 9277
0 Pearl5_crop.jpg 1340 890 N Pearl5_crop.jpg 11063 2335 product 9270 A 27 9270
0 Pearl6_crop.jpg 1340 890 N Pearl6_crop.jpg 11064 2335 product 9271 A 28 9271