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 (
    371861, 377772, 377773, 377774, 377775, 
    371878, 377780, 377781, 377782, 377783, 
    371873, 377777, 377778, 377779, 371884, 
    377784, 377785, 377786, 371890, 377787, 
    377788, 371868, 377776, 371898, 377790, 
    377791, 371895, 377789, 371936, 379177, 
    379178, 379179, 371902, 377792, 377793, 
    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, 371945, 379703, 
    371941, 379701, 379702
  ) 
ORDER BY 
  cscart_images_links.position, 
  cscart_images_links.pair_id

Query time 0.00269

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "423.41"
    },
    "ordering_operation": {
      "using_filesort": true,
      "cost_info": {
        "sort_cost": "73.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": 73,
            "rows_produced_per_join": 73,
            "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 (371861,377772,377773,377774,377775,371878,377780,377781,377782,377783,371873,377777,377778,377779,371884,377784,377785,377786,371890,377787,377788,371868,377776,371898,377790,377791,371895,377789,371936,379177,379178,379179,371902,377792,377793,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,371945,379703,371941,379701,379702)))",
            "cost_info": {
              "read_cost": "160.61",
              "eval_cost": "14.60",
              "prefix_cost": "175.21",
              "data_read_per_join": "6K"
            },
            "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": 73,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "73.00",
              "eval_cost": "14.60",
              "prefix_cost": "262.81",
              "data_read_per_join": "55K"
            },
            "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": 73,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "73.00",
              "eval_cost": "14.60",
              "prefix_cost": "350.41",
              "data_read_per_join": "43K"
            },
            "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-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-09T093855.073.png 600 600 N 3135286 371895 product 1018845 M 0 1018845
0 Untitled_design_-_2023-01-09T093954.908.png 600 600 N 3135291 371898 product 1018849 M 0 1018849
0 Untitled_design_-_2023-01-09T094020.520.png 600 600 N 3135297 371902 product 1018853 M 0 1018853
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-09T094552.035.png 600 600 N 3135336 371941 product 1018868 M 0 1018868
0 Untitled_design_-_2023-01-09T094645.193.png 600 600 N 3135340 371945 product 1018870 M 0 1018870
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-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
0 Untitled_design_-_2023-01-09T093855.073.png 600 600 N 3170634 377789 product 1018845 M 0 1018845
0 Untitled_design_-_2023-01-09T093954.908.png 600 600 N 3170635 377790 product 1018849 M 0 1018849
0 Untitled_design_-_2023-01-09T093954.908.png 600 600 N 3170636 377791 product 1018849 M 0 1018849
0 Untitled_design_-_2023-01-09T094020.520.png 600 600 N 3170637 377792 product 1018853 M 0 1018853
0 Untitled_design_-_2023-01-09T094020.520.png 600 600 N 3170638 377793 product 1018853 M 0 1018853
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-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-09T094645.193.png 600 600 N 3172552 379703 product 1018870 M 0 1018870
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