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 = 'M' 
  AND cscart_images_links.object_id IN (
    46, 51370, 51371, 51372, 51373, 51452, 
    51453, 51083, 51084, 22715, 51082, 
    51085, 51081, 51096, 51097, 51098, 
    51100, 51099, 22716, 51496, 21567, 
    51176, 51175, 51174, 51173, 51172, 
    91, 50989, 51343, 51342, 51341, 51340, 
    47, 105, 51129, 51128, 51127, 51126, 
    51125, 48, 51124, 49, 51123, 51122, 
    51121, 51120, 51119, 92, 51221, 137, 
    51224, 51223, 51222, 88, 51395, 51396, 
    51397, 51555, 51556, 126, 31, 51366, 
    51367, 51368, 51369
  ) 
ORDER BY 
  cscart_images_links.position, 
  cscart_images_links.pair_id

Query time 0.00594

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "199.01"
    },
    "ordering_operation": {
      "using_filesort": true,
      "cost_info": {
        "sort_cost": "85.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": 85,
            "rows_produced_per_join": 85,
            "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 (46,51370,51371,51372,51373,51452,51453,51083,51084,22715,51082,51085,51081,51096,51097,51098,51100,51099,22716,51496,21567,51176,51175,51174,51173,51172,91,50989,51343,51342,51341,51340,47,105,51129,51128,51127,51126,51125,48,51124,49,51123,51122,51121,51120,51119,92,51221,137,51224,51223,51222,88,51395,51396,51397,51555,51556,126,31,51366,51367,51368,51369)))",
            "cost_info": {
              "read_cost": "46.01",
              "eval_cost": "8.50",
              "prefix_cost": "54.51",
              "data_read_per_join": "7K"
            },
            "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": 85,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "21.25",
              "eval_cost": "8.50",
              "prefix_cost": "84.26",
              "data_read_per_join": "65K"
            },
            "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": 85,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "21.25",
              "eval_cost": "8.50",
              "prefix_cost": "114.01",
              "data_read_per_join": "50K"
            },
            "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 dzhemper_uchur_eclipse_fleece_cv_chernyy_3xl_1235_dzhemperuchureclipsefleececvchernyy.png 1000 1400 N N 113 88 product 8711 M 0 8711
0 kepka_uchur_visor_cv_saas_366_kepkauchurvisorcvsaas.png 1000 1400 N N 366 105 product 8964 M 0 8964
0 kurtka_uchur_warm_lite_down_cv_saas_528_kurtkauchurwarmlitedowncvsaas.png 1000 1400 N N 528 48 product 9126 M 0 9126
0 kurtka_uchur_warm_lite_down_cv_taas_534_kurtkauchurwarmlitedowncvtaas.png 1000 1400 N N 534 49 product 9132 M 0 9132
0 kurtka_uchur_warm_lite_down_cv_chernyy_ru_3_1693_kurtkauchurwarmlitedowncvchernyy.png 1000 1400 N N 542 92 product 9140 M 0 9140
0 termobele_uchur_arctic_thermo_pro_cv_chernyy_835_termobeleuchurarcticthermoprocvchernyy.png 1000 1400 N N 835 46 product 9433 M 0 9433
0 termobele_uchur_mens_thermal_underwear_cv_taas_ru_2_1432_termobeleuchurmensthermalunderwearcvtaas.png 1000 1400 N N 846 31 product 9444 M 0 9444
0 futbolka_uchur_terra_cv_chernyy_ru_2_2079_futbolkauchurterracvchernyy.png 1000 1400 N N 967 137 product 9565 M 0 9565
0 shapka_uchur_ski_cv_chernyy_1041_shapkauchurskicvchernyy.png 1000 1400 N N 1041 126 product 9639 M 0 9639
0 shtany_uchur_all_weather_pants_pro_cv_saas_ru_3_1653_shtanyuchurallweatherpantsprocvsaas.png 1000 1400 N N 1088 91 product 9686 M 0 9686
0 8_d0qt-9p.png 1000 1400 N N 3202 22716 product 10007 M 0 10007
0 kostyum_bulchut_tk_finlyandiya_cv_haki_m_3555_kostyumbulchuttkfinlyandiyacvhakim.png 1000 1400 N N 3555 47 product 10121 M 0 10121
0 2__4__qcon-ie.jpg 4160 5536 N N 4680 22715 product 10410 M 0 10410
0 92_ahu0-b9.png 1000 1400 N N 4915 21567 product 10460 M 0 10460
0 2__4__qcon-ie.jpg 4160 5536 N N 5705 51081 product 10410 M 0 10410
0 2__4__qcon-ie.jpg 4160 5536 N N 5724 51082 product 10410 M 0 10410
0 2__4__qcon-ie.jpg 4160 5536 N N 5743 51083 product 10410 M 0 10410
0 2__4__qcon-ie.jpg 4160 5536 N N 5762 51084 product 10410 M 0 10410
0 2__4__qcon-ie.jpg 4160 5536 N N 5781 51085 product 10410 M 0 10410
0 8_d0qt-9p.png 1000 1400 N N 5983 51096 product 10007 M 0 10007
0 8_d0qt-9p.png 1000 1400 N N 6000 51097 product 10007 M 0 10007
0 8_d0qt-9p.png 1000 1400 N N 6017 51098 product 10007 M 0 10007
0 8_d0qt-9p.png 1000 1400 N N 6034 51099 product 10007 M 0 10007
0 8_d0qt-9p.png 1000 1400 N N 6051 51100 product 10007 M 0 10007
0 kurtka_uchur_warm_lite_down_cv_chernyy_ru_3_1693_kurtkauchurwarmlitedowncvchernyy.png 1000 1400 N N 6288 51119 product 9140 M 0 9140
0 kurtka_uchur_warm_lite_down_cv_chernyy_ru_3_1693_kurtkauchurwarmlitedowncvchernyy.png 1000 1400 N N 6296 51120 product 9140 M 0 9140
0 kurtka_uchur_warm_lite_down_cv_chernyy_ru_3_1693_kurtkauchurwarmlitedowncvchernyy.png 1000 1400 N N 6304 51121 product 9140 M 0 9140
0 kurtka_uchur_warm_lite_down_cv_chernyy_ru_3_1693_kurtkauchurwarmlitedowncvchernyy.png 1000 1400 N N 6312 51122 product 9140 M 0 9140
0 kurtka_uchur_warm_lite_down_cv_chernyy_ru_3_1693_kurtkauchurwarmlitedowncvchernyy.png 1000 1400 N N 6320 51123 product 9140 M 0 9140
0 kurtka_uchur_warm_lite_down_cv_taas_534_kurtkauchurwarmlitedowncvtaas.png 1000 1400 N N 6328 51124 product 9132 M 0 9132
0 kurtka_uchur_warm_lite_down_cv_saas_528_kurtkauchurwarmlitedowncvsaas.png 1000 1400 N N 6334 51125 product 9126 M 0 9126
0 kurtka_uchur_warm_lite_down_cv_saas_528_kurtkauchurwarmlitedowncvsaas.png 1000 1400 N N 6340 51126 product 9126 M 0 9126
0 kurtka_uchur_warm_lite_down_cv_saas_528_kurtkauchurwarmlitedowncvsaas.png 1000 1400 N N 6346 51127 product 9126 M 0 9126
0 kurtka_uchur_warm_lite_down_cv_saas_528_kurtkauchurwarmlitedowncvsaas.png 1000 1400 N N 6352 51128 product 9126 M 0 9126
0 kurtka_uchur_warm_lite_down_cv_saas_528_kurtkauchurwarmlitedowncvsaas.png 1000 1400 N N 6358 51129 product 9126 M 0 9126
0 shtany_uchur_all_weather_pants_pro_cv_saas_ru_3_1653_shtanyuchurallweatherpantsprocvsaas.png 1000 1400 N N 6691 51172 product 9686 M 0 9686
0 shtany_uchur_all_weather_pants_pro_cv_saas_ru_3_1653_shtanyuchurallweatherpantsprocvsaas.png 1000 1400 N N 6697 51173 product 9686 M 0 9686
0 shtany_uchur_all_weather_pants_pro_cv_saas_ru_3_1653_shtanyuchurallweatherpantsprocvsaas.png 1000 1400 N N 6703 51174 product 9686 M 0 9686
0 shtany_uchur_all_weather_pants_pro_cv_saas_ru_3_1653_shtanyuchurallweatherpantsprocvsaas.png 1000 1400 N N 6709 51175 product 9686 M 0 9686
0 shtany_uchur_all_weather_pants_pro_cv_saas_ru_3_1653_shtanyuchurallweatherpantsprocvsaas.png 1000 1400 N N 6715 51176 product 9686 M 0 9686
0 futbolka_uchur_terra_cv_chernyy_ru_2_2079_futbolkauchurterracvchernyy.png 1000 1400 N N 7040 51221 product 9565 M 0 9565
0 futbolka_uchur_terra_cv_chernyy_ru_2_2079_futbolkauchurterracvchernyy.png 1000 1400 N N 7057 51222 product 9565 M 0 9565
0 futbolka_uchur_terra_cv_chernyy_ru_2_2079_futbolkauchurterracvchernyy.png 1000 1400 N N 7074 51223 product 9565 M 0 9565
0 futbolka_uchur_terra_cv_chernyy_ru_2_2079_futbolkauchurterracvchernyy.png 1000 1400 N N 7091 51224 product 9565 M 0 9565
0 kostyum_bulchut_tk_finlyandiya_cv_haki_m_3555_kostyumbulchuttkfinlyandiyacvhakim.png 1000 1400 N N 8611 51340 product 10121 M 0 10121
0 kostyum_bulchut_tk_finlyandiya_cv_haki_m_3555_kostyumbulchuttkfinlyandiyacvhakim.png 1000 1400 N N 8700 51341 product 10121 M 0 10121
0 kostyum_bulchut_tk_finlyandiya_cv_haki_m_3555_kostyumbulchuttkfinlyandiyacvhakim.png 1000 1400 N N 8789 51342 product 10121 M 0 10121
0 kostyum_bulchut_tk_finlyandiya_cv_haki_m_3555_kostyumbulchuttkfinlyandiyacvhakim.png 1000 1400 N N 8878 51343 product 10121 M 0 10121
0 termobele_uchur_mens_thermal_underwear_cv_taas_ru_2_1432_termobeleuchurmensthermalunderwearcvtaas.png 1000 1400 N N 9100 51366 product 9444 M 0 9444
0 termobele_uchur_mens_thermal_underwear_cv_taas_ru_2_1432_termobeleuchurmensthermalunderwearcvtaas.png 1000 1400 N N 9105 51367 product 9444 M 0 9444
0 termobele_uchur_mens_thermal_underwear_cv_taas_ru_2_1432_termobeleuchurmensthermalunderwearcvtaas.png 1000 1400 N N 9110 51368 product 9444 M 0 9444
0 termobele_uchur_mens_thermal_underwear_cv_taas_ru_2_1432_termobeleuchurmensthermalunderwearcvtaas.png 1000 1400 N N 9115 51369 product 9444 M 0 9444
0 termobele_uchur_arctic_thermo_pro_cv_chernyy_835_termobeleuchurarcticthermoprocvchernyy.png 1000 1400 N N 9120 51370 product 9433 M 0 9433
0 termobele_uchur_arctic_thermo_pro_cv_chernyy_835_termobeleuchurarcticthermoprocvchernyy.png 1000 1400 N N 9125 51371 product 9433 M 0 9433
0 termobele_uchur_arctic_thermo_pro_cv_chernyy_835_termobeleuchurarcticthermoprocvchernyy.png 1000 1400 N N 9130 51372 product 9433 M 0 9433
0 termobele_uchur_arctic_thermo_pro_cv_chernyy_835_termobeleuchurarcticthermoprocvchernyy.png 1000 1400 N N 9135 51373 product 9433 M 0 9433
0 dzhemper_uchur_eclipse_fleece_cv_chernyy_3xl_1235_dzhemperuchureclipsefleececvchernyy.png 1000 1400 N N 9389 51395 product 8711 M 0 8711
0 dzhemper_uchur_eclipse_fleece_cv_chernyy_3xl_1235_dzhemperuchureclipsefleececvchernyy.png 1000 1400 N N 9393 51396 product 8711 M 0 8711
0 dzhemper_uchur_eclipse_fleece_cv_chernyy_3xl_1235_dzhemperuchureclipsefleececvchernyy.png 1000 1400 N N 9397 51397 product 8711 M 0 8711
0 86_p9gf-gn.png 1000 1400 N N 9441 50989 product 10633 M 0 10633
0 termobele_uchur_arctic_thermo_pro_cv_chernyy_835_termobeleuchurarcticthermoprocvchernyy.png 1000 1400 N N 10152 51452 product 9433 M 0 9433
0 termobele_uchur_arctic_thermo_pro_cv_chernyy_835_termobeleuchurarcticthermoprocvchernyy.png 1000 1400 N N 10157 51453 product 9433 M 0 9433
0 dzhemper_uchur_eclipse_fleece_cv_chernyy_3xl_1235_dzhemperuchureclipsefleececvchernyy.png 1000 1400 N N 10657 51555 product 8711 M 0 8711
0 dzhemper_uchur_eclipse_fleece_cv_chernyy_3xl_1235_dzhemperuchureclipsefleececvchernyy.png 1000 1400 N N 10661 51556 product 8711 M 0 8711
0 104_d476-s2.png 1000 1400 N N 10665 51496 product 11631 M 0 11631