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, 360, 450, 348, 353, 361, 349, 1536, 
    2395, 1515, 355, 2302
  ) 
ORDER BY 
  cscart_images_links.position, 
  cscart_images_links.pair_id

Query time 0.00117

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 (351,360,450,348,353,361,349,1536,2395,1515,355,2302)"
        }
      }
    },
    "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 горизонт_crop.jpg 1340 890 N горизонт_crop.jpg 10674 1536 product 8881 A 1 8881
0 DSC_2063-fotor-2024080216650_crop.jpg 1340 890 N DSC_2063-fotor-2024080216650_crop.jpg 10678 361 product 8885 A 1 8885
0 oscar-fotor-2024082113550_crop_yu9l-q4.jpg 1340 890 N oscar-fotor-2024082113550_crop_yu9l-q4.jpg 10831 450 product 9038 A 1 9038
0 agat-2_crop_as2s-sv.jpg 1340 890 N agat-2_crop_as2s-sv.jpg 11102 349 product 9309 A 1 9309
0 OSCAR-3_crop_6dbh-bg.jpg 1340 890 N OSCAR-3_crop_6dbh-bg.jpg 10832 450 product 9039 A 2 9039
0 IMG_20240819_214915.jpg 1340 890 N IMG_20240819_214915.jpg 10951 2395 product 9158 A 4 9158
0 IMG_20240819_220206_crop.jpg 1340 890 N IMG_20240819_220206_crop.jpg 10952 2395 product 9159 A 5 9159
0 OSCAR-2_crop_oidd-52.jpg 1340 890 N OSCAR-2_crop_oidd-52.jpg 10833 450 product 9040 A 6 9040
0 IMG_20240819_220848.jpg 1340 890 N IMG_20240819_220848.jpg 10953 2395 product 9160 A 6 9160
0 agat_2_jjgn-dh.jpg 1340 893 N agat_2_jjgn-dh.jpg 11103 349 product 9310 A 6 9310
0 basalt-2_crop.jpg 1340 890 N basalt-2_crop.jpg 10720 353 product 8927 A 7 8927
0 2_vusb-n9.jpg 1340 895 N 2_vusb-n9.jpg 10752 1515 product 8959 A 7 8959
0 IMG_20240814_112722_crop_gxqz-og.jpg 1340 890 N IMG_20240814_112722_crop_gxqz-og.jpg 10775 2302 product 8982 A 7 8982
0 OSCAR_2_crop_cf9k-gu.jpg 1340 890 N OSCAR_2_crop_cf9k-gu.jpg 10834 450 product 9041 A 7 9041
0 Lama_2-fotor-20240821115637_crop.jpg 1340 890 N Lama_2-fotor-20240821115637_crop.jpg 10954 2395 product 9161 A 7 9161
0 agat_3_nyll-dh.jpg 1340 893 N agat_3_nyll-dh.jpg 11104 349 product 9311 A 7 9311
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_lvkm-3h.jpg 1340 895 N 2_lvkm-3h.jpg 10748 348 product 8955 A 8 8955
0 carrara_2_zjdn-b6.jpg 1340 893 N carrara_2_zjdn-b6.jpg 10753 1515 product 8960 A 8 8960
0 2_crop.jpg 1340 890 N 2_crop.jpg 10756 360 product 8963 A 8 8963
0 IMG_20240814_123219_crop_v4ht-ya.jpg 1340 890 N IMG_20240814_123219_crop_v4ht-ya.jpg 10776 2302 product 8983 A 8 8983
0 2_crop_emej-1d.jpg 1340 890 N 2_crop_emej-1d.jpg 10799 351 product 9006 A 8 9006
0 OSCAR_3_crop_89b5-6o.jpg 1340 890 N OSCAR_3_crop_89b5-6o.jpg 10835 450 product 9042 A 8 9042
0 andromeda_2_crop_yxxw-z5.jpg 1340 890 N andromeda_2_crop_yxxw-z5.jpg 10675 1536 product 8882 A 9 8882
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 carrara_2.jpg 1340 893 N carrara_2.jpg 10749 348 product 8956 A 9 8956
0 carrara_3_34vw-bu.jpg 1340 893 N carrara_3_34vw-bu.jpg 10754 1515 product 8961 A 9 8961
0 IMG_20240818_214104_crop.jpg 1340 890 N IMG_20240818_214104_crop.jpg 10757 360 product 8964 A 9 8964
0 IMG_20240814_121321_crop_daud-45.jpg 1340 890 N IMG_20240814_121321_crop_daud-45.jpg 10777 2302 product 8984 A 9 8984
0 granite_2_crop_4mze-yl.jpg 1340 890 N granite_2_crop_4mze-yl.jpg 10800 351 product 9007 A 9 9007
0 andromeda_3-fotor-20240821144126_crop.jpg 1340 890 N andromeda_3-fotor-20240821144126_crop.jpg 10676 1536 product 8883 A 10 8883
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 carrara_3.jpg 1340 893 N carrara_3.jpg 10750 348 product 8957 A 10 8957
0 IMG_20240818_214455_crop.jpg 1340 890 N IMG_20240818_214455_crop.jpg 10758 360 product 8965 A 10 8965
0 складка_ковра_crop_03ks-xz.jpg 1340 890 N складка_ковра_crop_03ks-xz.jpg 10778 2302 product 8985 A 10 8985
0 granite_3_crop_xt22-j4.jpg 1340 890 N granite_3_crop_xt22-j4.jpg 10801 351 product 9008 A 10 9008
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 IMG_20240818_214322_crop.jpg 1340 890 N IMG_20240818_214322_crop.jpg 10759 360 product 8966 A 11 8966
0 IMG_20240814_121753_crop_9j3y-ml.jpg 1340 890 N IMG_20240814_121753_crop_9j3y-ml.jpg 10779 2302 product 8986 A 11 8986
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 IMG_20240818_214234_crop.jpg 1340 890 N IMG_20240818_214234_crop.jpg 10760 360 product 8967 A 12 8967
0 IMG_20240814_121723_crop_4ej0-yw.jpg 1340 890 N IMG_20240814_121723_crop_4ej0-yw.jpg 10780 2302 product 8987 A 12 8987