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 (
    140, 51385, 51386, 51387, 51388, 51389, 
    65, 89, 51390, 51391, 51392, 51393, 
    51394, 50993, 51381, 51382, 50992, 
    51374, 51375, 50994, 51383, 51384
  ) 
ORDER BY 
  cscart_images_links.position, 
  cscart_images_links.pair_id

Query time 0.00149

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "70.01"
    },
    "ordering_operation": {
      "using_filesort": true,
      "cost_info": {
        "sort_cost": "30.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": 30,
            "rows_produced_per_join": 30,
            "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 (140,51385,51386,51387,51388,51389,65,89,51390,51391,51392,51393,51394,50993,51381,51382,50992,51374,51375,50994,51383,51384)))",
            "cost_info": {
              "read_cost": "16.01",
              "eval_cost": "3.00",
              "prefix_cost": "19.01",
              "data_read_per_join": "2K"
            },
            "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": 30,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "7.50",
              "eval_cost": "3.00",
              "prefix_cost": "29.51",
              "data_read_per_join": "23K"
            },
            "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": 30,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "7.50",
              "eval_cost": "3.00",
              "prefix_cost": "40.01",
              "data_read_per_join": "17K"
            },
            "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 zhilet_uchur_weave_core_cv_seryy_s_ru_1243_zhiletuchurweavecorecvseryy.png 1000 1400 N N 117 89 product 8715 M 0 8715
0 zhilet_steganyy_bulchut_tk_nylon_taslan_dobby_cv_chernyy_126_zhiletsteganyybulchuttknylontaslandobbycvchernyy.png 1000 1400 N N 126 65 product 8724 M 0 8724
0 24_1iiv-sp.png 1000 1400 N N 2252 140 product 9886 M 0 9886
0 24_1iiv-sp.png 1000 1400 N N 9182 51385 product 9886 M 0 9886
0 24_1iiv-sp.png 1000 1400 N N 9209 51386 product 9886 M 0 9886
0 24_1iiv-sp.png 1000 1400 N N 9236 51387 product 9886 M 0 9886
0 24_1iiv-sp.png 1000 1400 N N 9263 51388 product 9886 M 0 9886
0 24_1iiv-sp.png 1000 1400 N N 9290 51389 product 9886 M 0 9886
0 zhilet_uchur_weave_core_cv_seryy_s_ru_1243_zhiletuchurweavecorecvseryy.png 1000 1400 N N 9309 51390 product 8715 M 0 8715
0 zhilet_uchur_weave_core_cv_seryy_s_ru_1243_zhiletuchurweavecorecvseryy.png 1000 1400 N N 9328 51391 product 8715 M 0 8715
0 zhilet_uchur_weave_core_cv_seryy_s_ru_1243_zhiletuchurweavecorecvseryy.png 1000 1400 N N 9347 51392 product 8715 M 0 8715
0 zhilet_uchur_weave_core_cv_seryy_s_ru_1243_zhiletuchurweavecorecvseryy.png 1000 1400 N N 9366 51393 product 8715 M 0 8715
0 zhilet_uchur_weave_core_cv_seryy_s_ru_1243_zhiletuchurweavecorecvseryy.png 1000 1400 N N 9385 51394 product 8715 M 0 8715
0 81_56vf-7j.png 1000 1400 N N 9644 50992 product 10744 M 0 10744
0 81_56vf-7j.png 1000 1400 N N 9645 51374 product 10744 M 0 10744
0 81_56vf-7j.png 1000 1400 N N 9646 51375 product 10744 M 0 10744
0 72_pp77-t6.png 1000 1400 N N 9671 50993 product 10753 M 0 10753
0 72_pp77-t6.png 1000 1400 N N 9672 51381 product 10753 M 0 10753
0 72_pp77-t6.png 1000 1400 N N 9673 51382 product 10753 M 0 10753
0 34_c1hk-wi.png 1000 1400 N N 10753 51384 product 11718 M 0 11718
0 34_c1hk-wi.png 1000 1400 N N 10754 50994 product 11718 M 0 11718
0 34_c1hk-wi.png 1000 1400 N N 10755 51383 product 11718 M 0 11718