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 (
    371843, 377765, 377766, 377767, 371848, 
    377768, 377769, 377770, 377771, 371861, 
    377772, 377773, 377774, 377775, 371868, 
    377776, 371873, 377777, 377778, 377779, 
    371878, 377780, 377781, 377782, 377783, 
    371884, 377784, 377785, 377786, 371890, 
    377787, 377788
  ) 
ORDER BY 
  cscart_images_links.position, 
  cscart_images_links.pair_id

Query time 0.00151

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "185.61"
    },
    "ordering_operation": {
      "using_filesort": true,
      "cost_info": {
        "sort_cost": "32.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": 32,
            "rows_produced_per_join": 32,
            "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 (371843,377765,377766,377767,371848,377768,377769,377770,377771,371861,377772,377773,377774,377775,371868,377776,371873,377777,377778,377779,371878,377780,377781,377782,377783,371884,377784,377785,377786,371890,377787,377788)))",
            "cost_info": {
              "read_cost": "70.41",
              "eval_cost": "6.40",
              "prefix_cost": "76.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": 32,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "32.00",
              "eval_cost": "6.40",
              "prefix_cost": "115.21",
              "data_read_per_join": "24K"
            },
            "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": 32,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "32.00",
              "eval_cost": "6.40",
              "prefix_cost": "153.61",
              "data_read_per_join": "19K"
            },
            "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-09T093422.521.png 600 600 N 3135240 371861 product 1018816 M 0 1018816
0 Untitled_design_-_2023-01-09T093458.793.png 600 600 N 3135252 371868 product 1018824 M 0 1018824
0 Untitled_design_-_2023-01-09T093538.190.png 600 600 N 3135261 371873 product 1018832 M 0 1018832
0 Untitled_design_-_2023-01-09T093623.578.png 600 600 N 3135266 371878 product 1018834 M 0 1018834
0 Untitled_design_-_2023-01-09T093716.086.png 600 600 N 3135272 371884 product 1018836 M 0 1018836
0 Untitled_design_-_2023-01-09T093809.183.png 600 600 N 3135281 371890 product 1018842 M 0 1018842
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-09T093422.521.png 600 600 N 3170617 377772 product 1018816 M 0 1018816
0 Untitled_design_-_2023-01-09T093422.521.png 600 600 N 3170618 377773 product 1018816 M 0 1018816
0 Untitled_design_-_2023-01-09T093422.521.png 600 600 N 3170619 377774 product 1018816 M 0 1018816
0 Untitled_design_-_2023-01-09T093422.521.png 600 600 N 3170620 377775 product 1018816 M 0 1018816
0 Untitled_design_-_2023-01-09T093458.793.png 600 600 N 3170621 377776 product 1018824 M 0 1018824
0 Untitled_design_-_2023-01-09T093538.190.png 600 600 N 3170622 377777 product 1018832 M 0 1018832
0 Untitled_design_-_2023-01-09T093538.190.png 600 600 N 3170623 377778 product 1018832 M 0 1018832
0 Untitled_design_-_2023-01-09T093538.190.png 600 600 N 3170624 377779 product 1018832 M 0 1018832
0 Untitled_design_-_2023-01-09T093623.578.png 600 600 N 3170625 377780 product 1018834 M 0 1018834
0 Untitled_design_-_2023-01-09T093623.578.png 600 600 N 3170626 377781 product 1018834 M 0 1018834
0 Untitled_design_-_2023-01-09T093623.578.png 600 600 N 3170627 377782 product 1018834 M 0 1018834
0 Untitled_design_-_2023-01-09T093623.578.png 600 600 N 3170628 377783 product 1018834 M 0 1018834
0 Untitled_design_-_2023-01-09T093716.086.png 600 600 N 3170629 377784 product 1018836 M 0 1018836
0 Untitled_design_-_2023-01-09T093716.086.png 600 600 N 3170630 377785 product 1018836 M 0 1018836
0 Untitled_design_-_2023-01-09T093716.086.png 600 600 N 3170631 377786 product 1018836 M 0 1018836
0 Untitled_design_-_2023-01-09T093809.183.png 600 600 N 3170632 377787 product 1018842 M 0 1018842
0 Untitled_design_-_2023-01-09T093809.183.png 600 600 N 3170633 377788 product 1018842 M 0 1018842