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 (
    263981, 264764, 264765, 264766, 264767, 
    264102, 264977, 264969, 264970, 264971, 
    264972, 366827, 366828, 366829, 366830, 
    366831, 366832, 371861, 377772, 377773, 
    377774, 377775, 366833, 366834, 366835, 
    366836, 366837, 366838, 366771, 366772, 
    366773, 366774, 366775, 366776, 371878, 
    377780, 377781, 377782, 377783, 366815, 
    366816, 366817, 366818, 366819, 366820, 
    371873, 377777, 377778, 377779, 366690, 
    366691, 366692, 366693, 371884, 377784, 
    377785, 377786, 371890, 377787, 377788, 
    371868, 377776, 366760, 366761, 366762, 
    371898, 377790, 377791, 371895, 377789, 
    366821, 371902, 377792, 377793
  ) 
ORDER BY 
  cscart_images_links.position, 
  cscart_images_links.pair_id

Query time 0.00511

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "429.21"
    },
    "ordering_operation": {
      "using_filesort": true,
      "cost_info": {
        "sort_cost": "74.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": 74,
            "rows_produced_per_join": 74,
            "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 (263981,264764,264765,264766,264767,264102,264977,264969,264970,264971,264972,366827,366828,366829,366830,366831,366832,371861,377772,377773,377774,377775,366833,366834,366835,366836,366837,366838,366771,366772,366773,366774,366775,366776,371878,377780,377781,377782,377783,366815,366816,366817,366818,366819,366820,371873,377777,377778,377779,366690,366691,366692,366693,371884,377784,377785,377786,371890,377787,377788,371868,377776,366760,366761,366762,371898,377790,377791,371895,377789,366821,371902,377792,377793)))",
            "cost_info": {
              "read_cost": "162.81",
              "eval_cost": "14.80",
              "prefix_cost": "177.61",
              "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": 74,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "74.00",
              "eval_cost": "14.80",
              "prefix_cost": "266.41",
              "data_read_per_join": "56K"
            },
            "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": 74,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "74.00",
              "eval_cost": "14.80",
              "prefix_cost": "355.21",
              "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 atlete1.jpg 1243 1213 N 1341197 263981 product 344788 M 0 344788
0 atlete_bc4u-2n.jpg 1243 1015 N 1342698 264102 product 345018 M 0 345018
0 atlete1.jpg 1243 1213 N 1375660 264764 product 344788 M 0 344788
0 atlete1.jpg 1243 1213 N 1375661 264765 product 344788 M 0 344788
0 atlete1.jpg 1243 1213 N 1375662 264766 product 344788 M 0 344788
0 atlete1.jpg 1243 1213 N 1375663 264767 product 344788 M 0 344788
0 atlete_bc4u-2n.jpg 1243 1015 N 1378493 264969 product 345018 M 0 345018
0 atlete_bc4u-2n.jpg 1243 1015 N 1378494 264970 product 345018 M 0 345018
0 atlete_bc4u-2n.jpg 1243 1015 N 1378495 264971 product 345018 M 0 345018
0 atlete_bc4u-2n.jpg 1243 1015 N 1378496 264972 product 345018 M 0 345018
0 produts_img_600__19_.png 600 600 N 3016696 366690 product 963081 M 0 963081
0 produts_img_600__19_.png 600 600 N 3016718 366691 product 963081 M 0 963081
0 produts_img_600__19_.png 600 600 N 3016719 366692 product 963081 M 0 963081
0 produts_img_600__19_.png 600 600 N 3016720 366693 product 963081 M 0 963081
0 produts_img_600_-_2022-11-30T094927.396.png 600 600 N 3018722 366760 product 964853 M 0 964853
0 produts_img_600_-_2022-11-30T094927.396.png 600 600 N 3018723 366761 product 964853 M 0 964853
0 produts_img_600_-_2022-11-30T094927.396.png 600 600 N 3018724 366762 product 964853 M 0 964853
0 produts_img_600_-_2022-11-30T100344.846.png 600 600 N 3018751 366771 product 964861 M 0 964861
0 produts_img_600_-_2022-11-30T100344.846.png 600 600 N 3018770 366772 product 964861 M 0 964861
0 produts_img_600_-_2022-11-30T100344.846.png 600 600 N 3018771 366773 product 964861 M 0 964861
0 produts_img_600_-_2022-11-30T100344.846.png 600 600 N 3018772 366774 product 964861 M 0 964861
0 produts_img_600_-_2022-11-30T100344.846.png 600 600 N 3018773 366775 product 964861 M 0 964861
0 produts_img_600_-_2022-11-30T100344.846.png 600 600 N 3018774 366776 product 964861 M 0 964861
0 produts_img_600_-_2022-11-30T122111.150.png 600 600 N 3018967 366815 product 964934 M 0 964934
0 produts_img_600_-_2022-11-30T122111.150.png 600 600 N 3018986 366816 product 964934 M 0 964934
0 produts_img_600_-_2022-11-30T122111.150.png 600 600 N 3018987 366817 product 964934 M 0 964934
0 produts_img_600_-_2022-11-30T122111.150.png 600 600 N 3018988 366818 product 964934 M 0 964934
0 produts_img_600_-_2022-11-30T122111.150.png 600 600 N 3018989 366819 product 964934 M 0 964934
0 produts_img_600_-_2022-11-30T122111.150.png 600 600 N 3018990 366820 product 964934 M 0 964934
0 produts_img_600_-_2022-11-30T123027.853.png 600 600 N 3018991 366821 product 964938 M 0 964938
0 produts_img_600_-_2022-11-30T124217.975.png 600 600 N 3019015 366827 product 964942 M 0 964942
0 produts_img_600_-_2022-11-30T124217.975.png 600 600 N 3019040 366828 product 964942 M 0 964942
0 produts_img_600_-_2022-11-30T124217.975.png 600 600 N 3019041 366829 product 964942 M 0 964942
0 produts_img_600_-_2022-11-30T124217.975.png 600 600 N 3019042 366830 product 964942 M 0 964942
0 produts_img_600_-_2022-11-30T124217.975.png 600 600 N 3019043 366831 product 964942 M 0 964942
0 produts_img_600_-_2022-11-30T124217.975.png 600 600 N 3019044 366832 product 964942 M 0 964942
0 produts_img_600_-_2022-11-30T124915.827.png 600 600 N 3019045 366833 product 964947 M 0 964947
0 produts_img_600_-_2022-11-30T124915.827.png 600 600 N 3019070 366834 product 964947 M 0 964947
0 produts_img_600_-_2022-11-30T124915.827.png 600 600 N 3019071 366835 product 964947 M 0 964947
0 produts_img_600_-_2022-11-30T124915.827.png 600 600 N 3019072 366836 product 964947 M 0 964947
0 produts_img_600_-_2022-11-30T124915.827.png 600 600 N 3019073 366837 product 964947 M 0 964947
0 produts_img_600_-_2022-11-30T124915.827.png 600 600 N 3019074 366838 product 964947 M 0 964947
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-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 kepuce_3_y8qy-hm_cfts-rk.jpg 1243 1215 N 1378717 264977 product 348839 M 1 348839