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 = 'en' 
WHERE 
  cscart_images_links.object_type = 'product' 
  AND cscart_images_links.type = 'M' 
  AND cscart_images_links.object_id IN (
    371941, 379701, 379702, 431672, 431673, 
    431674, 431675, 431676, 371909, 377796, 
    377797, 371988, 379710, 366701, 366702, 
    366703, 81756, 81762, 81764, 81765, 
    81766, 81768, 396068, 396069, 396070, 
    396071, 396072, 396073, 82114, 82115, 
    82116, 82095, 82096, 371947, 379704, 
    379705, 81672, 371929, 377811, 377812, 
    377813, 371933, 378262, 414480, 414481, 
    414482, 414483, 414484, 371949, 379706
  ) 
ORDER BY 
  cscart_images_links.position, 
  cscart_images_links.pair_id

Query time 0.00323

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "290.01"
    },
    "ordering_operation": {
      "using_filesort": true,
      "cost_info": {
        "sort_cost": "50.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": 50,
            "rows_produced_per_join": 50,
            "filtered": "100.00",
            "index_condition": "((`webmarco`.`cscart_images_links`.`object_type` = 'product') and (`webmarco`.`cscart_images_links`.`type` = 'M') and (`webmarco`.`cscart_images_links`.`object_id` in (371941,379701,379702,431672,431673,431674,431675,431676,371909,377796,377797,371988,379710,366701,366702,366703,81756,81762,81764,81765,81766,81768,396068,396069,396070,396071,396072,396073,82114,82115,82116,82095,82096,371947,379704,379705,81672,371929,377811,377812,377813,371933,378262,414480,414481,414482,414483,414484,371949,379706)))",
            "cost_info": {
              "read_cost": "110.01",
              "eval_cost": "10.00",
              "prefix_cost": "120.01",
              "data_read_per_join": "4K"
            },
            "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": [
              "webmarco.cscart_images_links.detailed_id"
            ],
            "rows_examined_per_scan": 1,
            "rows_produced_per_join": 50,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "50.00",
              "eval_cost": "10.00",
              "prefix_cost": "180.01",
              "data_read_per_join": "38K"
            },
            "used_columns": [
              "image_id",
              "image_path",
              "image_x",
              "image_y",
              "is_high_res"
            ]
          }
        },
        {
          "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": [
              "webmarco.cscart_images.image_id",
              "const",
              "const"
            ],
            "rows_examined_per_scan": 1,
            "rows_produced_per_join": 50,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "50.00",
              "eval_cost": "10.00",
              "prefix_cost": "240.01",
              "data_read_per_join": "29K"
            },
            "used_columns": [
              "object_id",
              "description",
              "lang_code",
              "object_holder"
            ]
          }
        }
      ]
    }
  }
}

Result

image_id image_path image_x image_y is_high_res pair_id object_id object_type detailed_id type position alt images_image_id
0 Giacca-Cappuccio-Caldo-Morbido-Webmarco__1_.png 800 800 N 96889 81672 product 89153 M 0 89153
0 Scarves-for-Women-WebmarcO__1_.png 800 800 N 97038 81756 product 89232 M 0 89232
0 Scarves-for-Women-WebMarco__2_.png 800 800 N 97042 81764 product 89235 M 0 89235
0 Scarves-for-Women-WebMarcO__3_.png 800 800 N 97044 81762 product 89236 M 0 89236
0 Scarves-for-Women-WebMarcO__3__xak0-va.png 800 800 N 97045 81765 product 89237 M 0 89237
0 Scarves-for-Women-WeBmarco__4_.png 800 800 N 97047 81766 product 89238 M 0 89238
0 Scarves-for-Women-WebMaRco__5_.png 800 800 N 97050 81768 product 89240 M 0 89240
0 Abito-Corto-Glitter-Webmarco.png 800 800 N 97484 82095 product 89463 M 0 89463
0 Abito-Corto-Glitter-Webmarco.png 800 800 N 97487 82096 product 89463 M 0 89463
0 Abito-Tulle-Donna-WebMarco-Italia.png 800 800 N 97621 82115 product 89545 M 0 89545
0 Abito-Tulle-Donna-WebMarco-Italia_oykh-5u.png 800 800 N 97624 82116 product 89548 M 0 89548
0 Abito-Tulle-Donna-WebMarco-Italia_6srk-s6.png 800 800 N 97625 82114 product 89549 M 0 89549
0 produts_img_600__24__czik-ee.png 600 600 N 3016740 366701 product 963101 M 0 963101
0 produts_img_600__24__s82j-3y.png 600 600 N 3016744 366702 product 963105 M 0 963105
0 produts_img_600__24__bh4d-gj.png 600 600 N 3016748 366703 product 963109 M 0 963109
0 Untitled_design_-_2023-01-09T094115.234.png 600 600 N 3135304 371909 product 1018858 M 0 1018858
0 Untitled_design_-_2023-01-09T094238.598.png 600 600 N 3135324 371929 product 1018863 M 0 1018863
0 Untitled_design_-_2023-01-09T094333.745.png 600 600 N 3135328 371933 product 1018864 M 0 1018864
0 Untitled_design_-_2023-01-09T094552.035.png 600 600 N 3135336 371941 product 1018868 M 0 1018868
0 Untitled_design_-_2023-01-09T094817.720.png 600 600 N 3135342 371947 product 1018871 M 0 1018871
0 Untitled_design_-_2023-01-09T095007.870.png 600 600 N 3135344 371949 product 1018872 M 0 1018872
0 Untitled_design_-_2023-01-09T095107.092.png 600 600 N 3135611 371988 product 1018910 M 0 1018910
0 Untitled_design_-_2023-01-09T094115.234.png 600 600 N 3170641 377796 product 1018858 M 0 1018858
0 Untitled_design_-_2023-01-09T094115.234.png 600 600 N 3170642 377797 product 1018858 M 0 1018858
0 Untitled_design_-_2023-01-09T094238.598.png 600 600 N 3170660 377811 product 1018863 M 0 1018863
0 Untitled_design_-_2023-01-09T094238.598.png 600 600 N 3170661 377812 product 1018863 M 0 1018863
0 Untitled_design_-_2023-01-09T094238.598.png 600 600 N 3170662 377813 product 1018863 M 0 1018863
0 Untitled_design_-_2023-01-09T094333.745.png 600 600 N 3171111 378262 product 1018864 M 0 1018864
0 Untitled_design_-_2023-01-09T094552.035.png 600 600 N 3172550 379701 product 1018868 M 0 1018868
0 Untitled_design_-_2023-01-09T094552.035.png 600 600 N 3172551 379702 product 1018868 M 0 1018868
0 Untitled_design_-_2023-01-09T094817.720.png 600 600 N 3172553 379704 product 1018871 M 0 1018871
0 Untitled_design_-_2023-01-09T094817.720.png 600 600 N 3172554 379705 product 1018871 M 0 1018871
0 Untitled_design_-_2023-01-09T095007.870.png 600 600 N 3172555 379706 product 1018872 M 0 1018872
0 Untitled_design_-_2023-01-09T095107.092.png 600 600 N 3172559 379710 product 1018910 M 0 1018910
0 Untitled_design_-_2023-04-28T143756.433.png 600 600 N 3649538 396068 product 1361708 M 0 1361708
0 Untitled_design_-_2023-04-28T143756.433.png 600 600 N 3649539 396069 product 1361708 M 0 1361708
0 Untitled_design_-_2023-04-28T143756.433.png 600 600 N 3649540 396070 product 1361708 M 0 1361708
0 Untitled_design_-_2023-04-28T143756.433.png 600 600 N 3649541 396071 product 1361708 M 0 1361708
0 Untitled_design_-_2023-04-28T143756.433.png 600 600 N 3649542 396072 product 1361708 M 0 1361708
0 Untitled_design_-_2023-04-28T143756.433.png 600 600 N 3649543 396073 product 1361708 M 0 1361708
0 Untitled_design_-_2023-05-01T181914.557.png 600 600 N 3782058 414480 product 1492667 M 0 1492667
0 Untitled_design_-_2023-05-01T181914.557.png 600 600 N 3782059 414481 product 1492667 M 0 1492667
0 Untitled_design_-_2023-05-01T181914.557.png 600 600 N 3782060 414482 product 1492667 M 0 1492667
0 Untitled_design_-_2023-05-01T181914.557.png 600 600 N 3782061 414483 product 1492667 M 0 1492667
0 Untitled_design_-_2023-05-01T181914.557.png 600 600 N 3782062 414484 product 1492667 M 0 1492667
0 produts_img_600__19_.png 600 600 N 3871450 431672 product 1543494 M 0 1543494
0 produts_img_600__19_.png 600 600 N 3871451 431673 product 1543494 M 0 1543494
0 produts_img_600__19_.png 600 600 N 3871452 431674 product 1543494 M 0 1543494
0 produts_img_600__19_.png 600 600 N 3871453 431675 product 1543494 M 0 1543494
0 produts_img_600__19_.png 600 600 N 3871454 431676 product 1543494 M 0 1543494