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 (
    351, 446, 353, 361, 1598, 2395, 355, 2093, 
    2094, 1546, 2392, 358
  ) 
ORDER BY 
  cscart_images_links.position, 
  cscart_images_links.pair_id

Query time 0.00098

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": 43,
          "filtered": 100,
          "index_condition": "cscart_images_links.object_type = 'product' and cscart_images_links.`type` = 'A' and cscart_images_links.object_id in (351,446,353,361,1598,2395,355,2093,2094,1546,2392,358)"
        }
      }
    },
    "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 39fac54eb97b497cda0a7c6612836a5c.jpg 726 484 N 4208 446 product 2416 A 1 2416
0 DSC_2063-fotor-2024080216650_crop.jpg 1340 890 N DSC_2063-fotor-2024080216650_crop.jpg 10678 361 product 8885 A 1 8885
0 горизонт__1_.jpg 1340 893 N горизонт__1_.jpg 10843 1546 product 9050 A 1 9050
0 11f5ec6e7b0d5cf81589dee15c29624f.jpg 736 949 N 4209 446 product 2417 A 2 2417
0 terrazzo_1_nag3-ys.jpg 6240 4375 N 5750 446 product 3959 A 3 3959
0 terrazzo_2.jpg 6720 4480 N 5716 446 product 3925 A 4 3925
0 PRISMA_LOFT_DESIGN-fotor-20240821134141_crop_2vji-vj.jpg 1340 890 N PRISMA_LOFT_DESIGN-fotor-20240821134141_crop_2vji-vj.jpg 10869 2094 product 9076 A 4 9076
0 DSC_6813_-fotor-20240729165353_crop_g270-89.jpg 1340 890 N DSC_6813_-fotor-20240729165353_crop_g270-89.jpg 10927 2392 product 9134 A 4 9134
0 IMG_20240819_214915.jpg 1340 890 N IMG_20240819_214915.jpg 10951 2395 product 9158 A 4 9158
0 terrazzo3_528f-at.jpg 6720 4480 N 5717 446 product 3926 A 5 3926
0 DSC_2184-fotor-20240802151452_crop.jpg 1340 890 N DSC_2184-fotor-20240802151452_crop.jpg 10847 2093 product 9054 A 5 9054
0 DSC_6816-Pano__crop_e1l0-n1.jpg 1340 890 N DSC_6816-Pano__crop_e1l0-n1.jpg 10928 2392 product 9135 A 5 9135
0 IMG_20240819_220206_crop.jpg 1340 890 N IMG_20240819_220206_crop.jpg 10952 2395 product 9159 A 5 9159
0 265d5b3f27bddec2af45e2b17db01810.jpg 1340 893 N 265d5b3f27bddec2af45e2b17db01810.jpg 10960 1598 product 9167 A 5 9167
0 DSC_2197-fotor-20240802152923_crop.jpg 1340 890 N DSC_2197-fotor-20240802152923_crop.jpg 10848 2093 product 9055 A 6 9055
0 DSC_6883__crop_350l-0s.jpg 1340 890 N DSC_6883__crop_350l-0s.jpg 10929 2392 product 9136 A 6 9136
0 IMG_20240819_220848.jpg 1340 890 N IMG_20240819_220848.jpg 10953 2395 product 9160 A 6 9160
0 MARBLE_POWDER_3_crop.jpg 1340 890 N MARBLE_POWDER_3_crop.jpg 10961 1598 product 9168 A 6 9168
0 basalt-2_crop.jpg 1340 890 N basalt-2_crop.jpg 10720 353 product 8927 A 7 8927
0 plasa_2.jpg 1340 894 N plasa_2.jpg 10844 1546 product 9051 A 7 9051
0 DSC_2252-fotor-2024080215186_crop.jpg 1340 890 N DSC_2252-fotor-2024080215186_crop.jpg 10849 2093 product 9056 A 7 9056
0 DSC_6916-fotor-20240729165130_crop_d4sf-oy.jpg 1340 890 N DSC_6916-fotor-20240729165130_crop_d4sf-oy.jpg 10930 2392 product 9137 A 7 9137
0 Lama_2-fotor-20240821115637_crop.jpg 1340 890 N Lama_2-fotor-20240821115637_crop.jpg 10954 2395 product 9161 A 7 9161
0 apatite-2.jpg 1340 893 N apatite-2.jpg 10696 355 product 8903 A 8 8903
0 BASALT-3_crop.jpg 1340 890 N BASALT-3_crop.jpg 10721 353 product 8928 A 8 8928
0 2.jpg 1340 811 N 2.jpg 10744 358 product 8951 A 8 8951
0 2_crop_emej-1d.jpg 1340 890 N 2_crop_emej-1d.jpg 10799 351 product 9006 A 8 9006
0 plasa_3-fotor-20240821135316_crop.jpg 1340 890 N plasa_3-fotor-20240821135316_crop.jpg 10845 1546 product 9052 A 8 9052
0 DSC_4070_crop.jpg 1340 890 N DSC_4070_crop.jpg 10850 2093 product 9057 A 8 9057
0 DSC_7009_crop_aqbs-ma.jpg 1340 890 N DSC_7009_crop_aqbs-ma.jpg 10931 2392 product 9138 A 8 9138
0 DSC_2109=-fotor-2024080216345_crop.jpg 1340 890 N DSC_2109=-fotor-2024080216345_crop.jpg 10679 361 product 8886 A 9 8886
0 IMG_20240818_201714-fotor-20240821152116_crop.jpg 1340 890 N IMG_20240818_201714-fotor-20240821152116_crop.jpg 10697 355 product 8904 A 9 8904
0 BASALT-4_crop.jpg 1340 890 N BASALT-4_crop.jpg 10722 353 product 8929 A 9 8929
0 boreal_2.jpg 1340 893 N boreal_2.jpg 10745 358 product 8952 A 9 8952
0 granite_2_crop_4mze-yl.jpg 1340 890 N granite_2_crop_4mze-yl.jpg 10800 351 product 9007 A 9 9007
0 DSC_4085_crop.jpg 1340 890 N DSC_4085_crop.jpg 10851 2093 product 9058 A 9 9058
0 DSC_3965-fotor-20240821134643_crop_wyb6-eh.jpg 1340 890 N DSC_3965-fotor-20240821134643_crop_wyb6-eh.jpg 10870 2094 product 9077 A 9 9077
0 Elegant_складка-fotor-20240821113054_crop_4cr5-60.jpg 1340 890 N Elegant_складка-fotor-20240821113054_crop_4cr5-60.jpg 10932 2392 product 9139 A 9 9139
0 DSC_2157=-fotor-2024080216733_crop.jpg 1340 890 N DSC_2157=-fotor-2024080216733_crop.jpg 10680 361 product 8887 A 10 8887
0 IMG_20240818_201823-fotor-20240821145944_crop.jpg 1340 890 N IMG_20240818_201823-fotor-20240821145944_crop.jpg 10698 355 product 8905 A 10 8905
0 basalt_2.jpg 1340 893 N basalt_2.jpg 10723 353 product 8930 A 10 8930
0 boreal_3.jpg 1340 893 N boreal_3.jpg 10746 358 product 8953 A 10 8953
0 granite_3_crop_xt22-j4.jpg 1340 890 N granite_3_crop_xt22-j4.jpg 10801 351 product 9008 A 10 9008
0 DSC_4103_crop.jpg 1340 890 N DSC_4103_crop.jpg 10852 2093 product 9059 A 10 9059
0 DSC_3986-fotor-2024082113468_crop_rnxu-bk.jpg 1340 890 N DSC_3986-fotor-2024082113468_crop_rnxu-bk.jpg 10871 2094 product 9078 A 10 9078
0 antique_2.jpg 1340 893 N antique_2.jpg 10681 361 product 8888 A 11 8888
0 IMG_20240818_202957-fotor-20240821145826_crop.jpg 1340 890 N IMG_20240818_202957-fotor-20240821145826_crop.jpg 10699 355 product 8906 A 11 8906
0 basalt_3.jpg 1340 893 N basalt_3.jpg 10724 353 product 8931 A 11 8931
0 DSC_4116_crop.jpg 1340 890 N DSC_4116_crop.jpg 10853 2093 product 9060 A 11 9060
0 DSC_4027-fotor-20240821134538_crop_osmr-bh.jpg 1340 890 N DSC_4027-fotor-20240821134538_crop_osmr-bh.jpg 10872 2094 product 9079 A 11 9079
0 anique_3.jpg 1340 893 N anique_3.jpg 10682 361 product 8889 A 12 8889
0 IMG_20240818_202728-fotor-20240821145845_crop.jpg 1340 890 N IMG_20240818_202728-fotor-20240821145845_crop.jpg 10700 355 product 8907 A 12 8907
0 DSC_3898-fotor-2024082113451_crop_5b0f-yr.jpg 1340 890 N DSC_3898-fotor-2024082113451_crop_5b0f-yr.jpg 10873 2094 product 9080 A 12 9080