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 (
    371848, 377768, 377769, 377770, 377771, 
    371936, 379177, 379178, 379179, 377755, 
    377808, 377809, 377810, 371912, 377798, 
    377799, 377800, 377801, 372021, 379711, 
    379712, 379713, 379714, 377735, 377804, 
    377805, 377806, 377807, 371917, 377802, 
    377803, 371905, 377794, 377795, 371984, 
    379707, 379708, 379709, 371843, 377765, 
    377766, 377767
  ) 
ORDER BY 
  cscart_images_links.position, 
  cscart_images_links.pair_id

Query time 0.00398

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "243.61"
    },
    "ordering_operation": {
      "using_filesort": true,
      "cost_info": {
        "sort_cost": "42.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": 42,
            "rows_produced_per_join": 42,
            "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 (371848,377768,377769,377770,377771,371936,379177,379178,379179,377755,377808,377809,377810,371912,377798,377799,377800,377801,372021,379711,379712,379713,379714,377735,377804,377805,377806,377807,371917,377802,377803,371905,377794,377795,371984,379707,379708,379709,371843,377765,377766,377767)))",
            "cost_info": {
              "read_cost": "92.41",
              "eval_cost": "8.40",
              "prefix_cost": "100.81",
              "data_read_per_join": "3K"
            },
            "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": 42,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "42.00",
              "eval_cost": "8.40",
              "prefix_cost": "151.21",
              "data_read_per_join": "32K"
            },
            "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": 42,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "42.00",
              "eval_cost": "8.40",
              "prefix_cost": "201.61",
              "data_read_per_join": "24K"
            },
            "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 Untitled_design_-_2023-01-09T093128.577.png 600 600 N 3135217 371843 product 1018800 M 0 1018800
0 Untitled_design_-_2023-01-09T093204.198.png 600 600 N 3135224 371848 product 1018807 M 0 1018807
0 Untitled_design_-_2023-01-09T094102.062.png 600 600 N 3135300 371905 product 1018856 M 0 1018856
0 Untitled_design_-_2023-01-09T094134.087.png 600 600 N 3135307 371912 product 1018859 M 0 1018859
0 Untitled_design_-_2023-01-09T094150.844.png 600 600 N 3135312 371917 product 1018860 M 0 1018860
0 Untitled_design_-_2023-01-09T094503.189.png 600 600 N 3135331 371936 product 1018866 M 0 1018866
0 Untitled_design_-_2023-01-09T095036.456.png 600 600 N 3135541 371984 product 1018907 M 0 1018907
0 Untitled_design_-_2023-01-09T155947.780.png 600 600 N 3135809 372021 product 1018916 M 0 1018916
0 Untitled_design_-_2023-01-09T094204.627_qdyo-4w.png 600 600 N 3167857 377735 product 1042635 M 0 1042635
0 Untitled_design_-_2023-01-09T094220.402.png 600 600 N 3168044 377755 product 1018862 M 0 1018862
0 Untitled_design_-_2023-01-09T093128.577.png 600 600 N 3170610 377765 product 1018800 M 0 1018800
0 Untitled_design_-_2023-01-09T093128.577.png 600 600 N 3170611 377766 product 1018800 M 0 1018800
0 Untitled_design_-_2023-01-09T093128.577.png 600 600 N 3170612 377767 product 1018800 M 0 1018800
0 Untitled_design_-_2023-01-09T093204.198.png 600 600 N 3170613 377768 product 1018807 M 0 1018807
0 Untitled_design_-_2023-01-09T093204.198.png 600 600 N 3170614 377769 product 1018807 M 0 1018807
0 Untitled_design_-_2023-01-09T093204.198.png 600 600 N 3170615 377770 product 1018807 M 0 1018807
0 Untitled_design_-_2023-01-09T093204.198.png 600 600 N 3170616 377771 product 1018807 M 0 1018807
0 Untitled_design_-_2023-01-09T094102.062.png 600 600 N 3170639 377794 product 1018856 M 0 1018856
0 Untitled_design_-_2023-01-09T094102.062.png 600 600 N 3170640 377795 product 1018856 M 0 1018856
0 Untitled_design_-_2023-01-09T094134.087.png 600 600 N 3170643 377798 product 1018859 M 0 1018859
0 Untitled_design_-_2023-01-09T094134.087.png 600 600 N 3170644 377799 product 1018859 M 0 1018859
0 Untitled_design_-_2023-01-09T094134.087.png 600 600 N 3170645 377800 product 1018859 M 0 1018859
0 Untitled_design_-_2023-01-09T094134.087.png 600 600 N 3170646 377801 product 1018859 M 0 1018859
0 Untitled_design_-_2023-01-09T094150.844.png 600 600 N 3170647 377802 product 1018860 M 0 1018860
0 Untitled_design_-_2023-01-09T094150.844.png 600 600 N 3170648 377803 product 1018860 M 0 1018860
0 Untitled_design_-_2023-01-09T094204.627_qdyo-4w.png 600 600 N 3170651 377804 product 1042635 M 0 1042635
0 Untitled_design_-_2023-01-09T094204.627_qdyo-4w.png 600 600 N 3170652 377805 product 1042635 M 0 1042635
0 Untitled_design_-_2023-01-09T094204.627_qdyo-4w.png 600 600 N 3170653 377806 product 1042635 M 0 1042635
0 Untitled_design_-_2023-01-09T094204.627_qdyo-4w.png 600 600 N 3170654 377807 product 1042635 M 0 1042635
0 Untitled_design_-_2023-01-09T094220.402.png 600 600 N 3170657 377808 product 1018862 M 0 1018862
0 Untitled_design_-_2023-01-09T094220.402.png 600 600 N 3170658 377809 product 1018862 M 0 1018862
0 Untitled_design_-_2023-01-09T094220.402.png 600 600 N 3170659 377810 product 1018862 M 0 1018862
0 Untitled_design_-_2023-01-09T094503.189.png 600 600 N 3172025 379177 product 1018866 M 0 1018866
0 Untitled_design_-_2023-01-09T094503.189.png 600 600 N 3172026 379178 product 1018866 M 0 1018866
0 Untitled_design_-_2023-01-09T094503.189.png 600 600 N 3172027 379179 product 1018866 M 0 1018866
0 Untitled_design_-_2023-01-09T095036.456.png 600 600 N 3172556 379707 product 1018907 M 0 1018907
0 Untitled_design_-_2023-01-09T095036.456.png 600 600 N 3172557 379708 product 1018907 M 0 1018907
0 Untitled_design_-_2023-01-09T095036.456.png 600 600 N 3172558 379709 product 1018907 M 0 1018907
0 Untitled_design_-_2023-01-09T155947.780.png 600 600 N 3172584 379711 product 1018916 M 0 1018916
0 Untitled_design_-_2023-01-09T155947.780.png 600 600 N 3172585 379712 product 1018916 M 0 1018916
0 Untitled_design_-_2023-01-09T155947.780.png 600 600 N 3172586 379713 product 1018916 M 0 1018916
0 Untitled_design_-_2023-01-09T155947.780.png 600 600 N 3172587 379714 product 1018916 M 0 1018916