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 = 'kk' 
WHERE 
  cscart_images_links.object_type = 'product' 
  AND cscart_images_links.type = 'M' 
  AND cscart_images_links.object_id IN (
    51194, 51193, 51192, 51191, 51190, 51189, 
    19, 13, 61, 51220, 51219, 51218, 51217, 
    51216, 146, 51448, 51449, 95, 15, 9, 
    51347, 85, 51211, 51210, 111, 51212, 
    59, 60, 144, 51215, 51214, 51213, 51444, 
    51445, 51446, 51447, 51350, 123
  ) 
ORDER BY 
  cscart_images_links.position, 
  cscart_images_links.pair_id

Query time 0.00223

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "125.61"
    },
    "ordering_operation": {
      "using_filesort": true,
      "cost_info": {
        "sort_cost": "54.00"
      },
      "nested_loop": [
        {
          "table": {
            "table_name": "cscart_images_links",
            "access_type": "range",
            "possible_keys": [
              "object_id"
            ],
            "key": "object_id",
            "used_key_parts": [
              "object_id",
              "object_type",
              "type"
            ],
            "key_length": "81",
            "rows_examined_per_scan": 54,
            "rows_produced_per_join": 54,
            "filtered": "100.00",
            "index_condition": "((`test_uchur_k`.`cscart_images_links`.`object_type` = 'product') and (`test_uchur_k`.`cscart_images_links`.`type` = 'M') and (`test_uchur_k`.`cscart_images_links`.`object_id` in (51194,51193,51192,51191,51190,51189,19,13,61,51220,51219,51218,51217,51216,146,51448,51449,95,15,9,51347,85,51211,51210,111,51212,59,60,144,51215,51214,51213,51444,51445,51446,51447,51350,123)))",
            "cost_info": {
              "read_cost": "28.41",
              "eval_cost": "5.40",
              "prefix_cost": "33.81",
              "data_read_per_join": "5K"
            },
            "used_columns": [
              "pair_id",
              "object_id",
              "object_type",
              "image_id",
              "detailed_id",
              "type",
              "position"
            ]
          }
        },
        {
          "table": {
            "table_name": "cscart_images",
            "access_type": "eq_ref",
            "possible_keys": [
              "PRIMARY"
            ],
            "key": "PRIMARY",
            "used_key_parts": [
              "image_id"
            ],
            "key_length": "4",
            "ref": [
              "test_uchur_k.cscart_images_links.detailed_id"
            ],
            "rows_examined_per_scan": 1,
            "rows_produced_per_join": 54,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "13.50",
              "eval_cost": "5.40",
              "prefix_cost": "52.71",
              "data_read_per_join": "41K"
            },
            "used_columns": [
              "image_id",
              "image_path",
              "image_x",
              "image_y",
              "is_high_res",
              "transparent"
            ]
          }
        },
        {
          "table": {
            "table_name": "cscart_common_descriptions",
            "access_type": "eq_ref",
            "possible_keys": [
              "PRIMARY"
            ],
            "key": "PRIMARY",
            "used_key_parts": [
              "object_id",
              "lang_code",
              "object_holder"
            ],
            "key_length": "108",
            "ref": [
              "test_uchur_k.cscart_images.image_id",
              "const",
              "const"
            ],
            "rows_examined_per_scan": 1,
            "rows_produced_per_join": 54,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "13.50",
              "eval_cost": "5.40",
              "prefix_cost": "71.61",
              "data_read_per_join": "32K"
            },
            "used_columns": [
              "object_id",
              "description",
              "lang_code",
              "object_holder"
            ]
          }
        }
      ]
    }
  }
}

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 kepka_uchur_active_cv_navy_227_kepkauchuractivecvnavy.png 1000 1400 N N 227 9 product 8825 M 0 8825
0 kepka_uchur_embossed_logo_cv_black_238_kepkauchurembossedlogocvblack.png 1000 1400 N N 238 59 product 8836 M 0 8836
0 kepka_uchur_embossed_logo_cv_grey_243_kepkauchurembossedlogocvgrey.png 1000 1400 N N 243 60 product 8841 M 0 8841
0 kepka_uchur_logo_cv_olive_277_kepkauchurlogocvolive.png 1000 1400 N N 277 13 product 8875 M 0 8875
0 kepka_uchur_mid_cap_cv_taas_304_kepkauchurmidcapcvtaas.png 1000 1400 N N 304 15 product 8902 M 0 8902
0 kepka_uchur_ranger_mesh_cap_cv_oliva_60_1889_kepkauchurrangermeshcapcvoliva.png 1000 1400 N N 309 123 product 8907 M 0 8907
0 kepka_uchur_raptor_camo_mesh_cv_black_313_kepkauchurraptorcamomeshcvblack.png 1000 1400 N N 313 61 product 8911 M 0 8911
0 noski_uchur_active_cv_chernyy_seryy_r_40_43_1572_noskiuchuractivecvchernyyseryy.png 1000 1400 N N 582 85 product 9180 M 0 9180
0 snud_uchur_cv_taas_693_snuduchurcvtaas.jpg 880 1232 N N 693 95 product 9291 M 0 9291
0 futbolka_uchur_trophy_fishing_blue_t_shirt_974_futbolkauchurtrophyfishingbluetshirt.png 1000 1400 N N 974 146 product 9572 M 0 9572
0 shtany_uchur_all_weather_pants_lite_cv_saas_34x30_ru_1318_shtanyuchurallweatherpantslitecvsaas.png 1000 1400 N N 1071 19 product 9669 M 0 9669
0 56_xxi3-0i.png 1000 1400 N N 2203 111 product 9872 M 0 9872
0 Group_1223.png 1000 1400 N N 5395 144 product 10586 M 0 10586
0 shtany_uchur_all_weather_pants_lite_cv_saas_34x30_ru_1318_shtanyuchurallweatherpantslitecvsaas.png 1000 1400 N N 6798 51189 product 9669 M 0 9669
0 shtany_uchur_all_weather_pants_lite_cv_saas_34x30_ru_1318_shtanyuchurallweatherpantslitecvsaas.png 1000 1400 N N 6803 51190 product 9669 M 0 9669
0 shtany_uchur_all_weather_pants_lite_cv_saas_34x30_ru_1318_shtanyuchurallweatherpantslitecvsaas.png 1000 1400 N N 6808 51191 product 9669 M 0 9669
0 shtany_uchur_all_weather_pants_lite_cv_saas_34x30_ru_1318_shtanyuchurallweatherpantslitecvsaas.png 1000 1400 N N 6813 51192 product 9669 M 0 9669
0 shtany_uchur_all_weather_pants_lite_cv_saas_34x30_ru_1318_shtanyuchurallweatherpantslitecvsaas.png 1000 1400 N N 6818 51193 product 9669 M 0 9669
0 shtany_uchur_all_weather_pants_lite_cv_saas_34x30_ru_1318_shtanyuchurallweatherpantslitecvsaas.png 1000 1400 N N 6823 51194 product 9669 M 0 9669
0 56_xxi3-0i.png 1000 1400 N N 6930 51210 product 9872 M 0 9872
0 56_xxi3-0i.png 1000 1400 N N 6937 51211 product 9872 M 0 9872
0 56_xxi3-0i.png 1000 1400 N N 6944 51212 product 9872 M 0 9872
0 Group_1223.png 1000 1400 N N 6947 51213 product 10586 M 0 10586
0 Group_1223.png 1000 1400 N N 6950 51214 product 10586 M 0 10586
0 Group_1223.png 1000 1400 N N 6953 51215 product 10586 M 0 10586
0 futbolka_uchur_trophy_fishing_blue_t_shirt_974_futbolkauchurtrophyfishingbluetshirt.png 1000 1400 N N 6967 51216 product 9572 M 0 9572
0 futbolka_uchur_trophy_fishing_blue_t_shirt_974_futbolkauchurtrophyfishingbluetshirt.png 1000 1400 N N 6981 51217 product 9572 M 0 9572
0 futbolka_uchur_trophy_fishing_blue_t_shirt_974_futbolkauchurtrophyfishingbluetshirt.png 1000 1400 N N 6995 51218 product 9572 M 0 9572
0 futbolka_uchur_trophy_fishing_blue_t_shirt_974_futbolkauchurtrophyfishingbluetshirt.png 1000 1400 N N 7009 51219 product 9572 M 0 9572
0 futbolka_uchur_trophy_fishing_blue_t_shirt_974_futbolkauchurtrophyfishingbluetshirt.png 1000 1400 N N 7023 51220 product 9572 M 0 9572
0 noski_uchur_active_cv_chernyy_seryy_r_40_43_1572_noskiuchuractivecvchernyyseryy.png 1000 1400 N N 8915 51347 product 9180 M 0 9180
0 kepka_uchur_ranger_mesh_cap_cv_oliva_60_1889_kepkauchurrangermeshcapcvoliva.png 1000 1400 N N 8947 51350 product 8907 M 0 8907
0 Group_1223.png 1000 1400 N N 10092 51444 product 10586 M 0 10586
0 Group_1223.png 1000 1400 N N 10095 51445 product 10586 M 0 10586
0 Group_1223.png 1000 1400 N N 10098 51446 product 10586 M 0 10586
0 Group_1223.png 1000 1400 N N 10101 51447 product 10586 M 0 10586
0 futbolka_uchur_trophy_fishing_blue_t_shirt_974_futbolkauchurtrophyfishingbluetshirt.png 1000 1400 N N 10115 51448 product 9572 M 0 9572
0 futbolka_uchur_trophy_fishing_blue_t_shirt_974_futbolkauchurtrophyfishingbluetshirt.png 1000 1400 N N 10129 51449 product 9572 M 0 9572