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, 
    264969, 264973, 264977, 264974, 264975, 
    264976, 264102, 264970, 264971, 264972, 
    264705, 264964, 264965, 264966, 264967, 
    264968, 264960, 264961, 264962, 264963, 
    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, 366765, 366766, 366767, 366768, 
    366760, 366761, 366762, 371898, 377790, 
    377791, 371895, 377789
  ) 
ORDER BY 
  cscart_images_links.position, 
  cscart_images_links.pair_id

Query time 0.00476

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "510.41"
    },
    "ordering_operation": {
      "using_filesort": true,
      "cost_info": {
        "sort_cost": "88.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": 88,
            "rows_produced_per_join": 88,
            "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,264969,264973,264977,264974,264975,264976,264102,264970,264971,264972,264705,264964,264965,264966,264967,264968,264960,264961,264962,264963,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,366765,366766,366767,366768,366760,366761,366762,371898,377790,377791,371895,377789)))",
            "cost_info": {
              "read_cost": "193.61",
              "eval_cost": "17.60",
              "prefix_cost": "211.21",
              "data_read_per_join": "8K"
            },
            "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": 88,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "88.00",
              "eval_cost": "17.60",
              "prefix_cost": "316.81",
              "data_read_per_join": "67K"
            },
            "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": 88,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "88.00",
              "eval_cost": "17.60",
              "prefix_cost": "422.41",
              "data_read_per_join": "52K"
            },
            "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-30T095648.865.png 600 600 N 3018727 366765 product 964857 M 0 964857
0 produts_img_600_-_2022-11-30T095648.865.png 600 600 N 3018746 366766 product 964857 M 0 964857
0 produts_img_600_-_2022-11-30T095648.865.png 600 600 N 3018747 366767 product 964857 M 0 964857
0 produts_img_600_-_2022-11-30T095648.865.png 600 600 N 3018748 366768 product 964857 M 0 964857
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-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-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 kepuce_me_ngjitese_blu.jpg 1243 1231 N 1375605 264705 product 348541 M 1 348541
0 kepuce_me_ngjitese_blu.jpg 1243 1231 N 1378298 264960 product 348541 M 1 348541
0 kepuce_me_ngjitese_blu.jpg 1243 1231 N 1378299 264961 product 348541 M 1 348541
0 kepuce_me_ngjitese_blu.jpg 1243 1231 N 1378300 264962 product 348541 M 1 348541
0 kepuce_me_ngjitese_blu.jpg 1243 1231 N 1378301 264963 product 348541 M 1 348541
0 kepuce_3_y8qy-hm_m0jl-ff.jpg 1243 1215 N 1378532 264973 product 348834 M 1 348834
0 kepuce_3_y8qy-hm_zf8q-o6.jpg 1243 1215 N 1378593 264974 product 348835 M 1 348835
0 kepuce_3_y8qy-hm_7ltv-l0.jpg 1243 1215 N 1378625 264975 product 348837 M 1 348837
0 kepuce_3_y8qy-hm_ergd-85.jpg 1243 1215 N 1378656 264976 product 348838 M 1 348838
0 kepuce_3_y8qy-hm_cfts-rk.jpg 1243 1215 N 1378717 264977 product 348839 M 1 348839
0 kepuce__me_ngjitese_1_xc58-yt.jpg 1243 1213 N 1378307 264964 product 348828 M 2 348828
0 kepuce__me_ngjitese_1_inxs-qw.jpg 1243 1213 N 1378308 264965 product 348829 M 2 348829
0 kepuce__me_ngjitese_1_ai04-68.jpg 1243 1213 N 1378309 264966 product 348830 M 2 348830
0 kepuce__me_ngjitese_1_h70c-k3.jpg 1243 1213 N 1378310 264967 product 348831 M 2 348831
0 kepuce__me_ngjitese_1_y9s7-68.jpg 1243 1213 N 1378311 264968 product 348832 M 2 348832