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 (
    263720, 264940, 264945, 264955, 264946, 
    264947, 264948, 264949, 263772, 264756, 
    264757, 264758, 264759, 263981, 264764, 
    264765, 264766, 264767, 264156, 264935, 
    264954, 264927, 264928, 264929, 264930, 
    264226, 264888, 264893, 264889, 264890, 
    264891, 264892, 264304, 264819, 264820, 
    264821, 264822, 264847, 264851, 264855, 
    264852, 264853, 264854, 264941, 264942, 
    264943, 264944, 264969, 264973, 264977, 
    264974, 264975, 264976, 264894, 264895, 
    264896, 264897, 264219, 264909, 264910, 
    264911, 264912, 264913, 264931, 264950, 
    264951, 264952, 264953, 264914, 264915, 
    264916, 264917, 264102, 264970, 264971, 
    264972, 264193, 264922, 264918, 264919, 
    264920, 264921, 264923, 264924, 264925, 
    264926, 264705, 264964, 264965, 264966, 
    264967, 264968, 264960, 264961, 264962, 
    264963, 264824, 264825, 264826, 263925, 
    264760, 264761, 264762, 264763
  ) 
ORDER BY 
  cscart_images_links.position, 
  cscart_images_links.pair_id

Query time 0.00633

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "603.21"
    },
    "ordering_operation": {
      "using_filesort": true,
      "cost_info": {
        "sort_cost": "104.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": 104,
            "rows_produced_per_join": 104,
            "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 (263720,264940,264945,264955,264946,264947,264948,264949,263772,264756,264757,264758,264759,263981,264764,264765,264766,264767,264156,264935,264954,264927,264928,264929,264930,264226,264888,264893,264889,264890,264891,264892,264304,264819,264820,264821,264822,264847,264851,264855,264852,264853,264854,264941,264942,264943,264944,264969,264973,264977,264974,264975,264976,264894,264895,264896,264897,264219,264909,264910,264911,264912,264913,264931,264950,264951,264952,264953,264914,264915,264916,264917,264102,264970,264971,264972,264193,264922,264918,264919,264920,264921,264923,264924,264925,264926,264705,264964,264965,264966,264967,264968,264960,264961,264962,264963,264824,264825,264826,263925,264760,264761,264762,264763)))",
            "cost_info": {
              "read_cost": "228.81",
              "eval_cost": "20.80",
              "prefix_cost": "249.61",
              "data_read_per_join": "9K"
            },
            "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": 104,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "104.00",
              "eval_cost": "20.80",
              "prefix_cost": "374.41",
              "data_read_per_join": "79K"
            },
            "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": 104,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "104.00",
              "eval_cost": "20.80",
              "prefix_cost": "499.21",
              "data_read_per_join": "61K"
            },
            "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 Kepucet_e_hirushes.jpg 1243 1234 N 1340727 263772 product 344549 M 0 344549
0 shapka.jpg 1243 1243 N 1341028 263925 product 344724 M 0 344724
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 black3.jpg 1243 1487 N 1342890 264156 product 344729 M 0 344729
0 black2.jpg 1243 1230 N 1343135 264193 product 344535 M 0 344535
0 kastor_0hra-pz.jpg 1243 1037 N 1343441 264304 product 345163 M 0 345163
0 Kepucet_e_hirushes.jpg 1243 1234 N 1375652 264756 product 344549 M 0 344549
0 Kepucet_e_hirushes.jpg 1243 1234 N 1375653 264757 product 344549 M 0 344549
0 Kepucet_e_hirushes.jpg 1243 1234 N 1375654 264758 product 344549 M 0 344549
0 Kepucet_e_hirushes.jpg 1243 1234 N 1375655 264759 product 344549 M 0 344549
0 shapka.jpg 1243 1243 N 1375656 264760 product 344724 M 0 344724
0 shapka.jpg 1243 1243 N 1375657 264761 product 344724 M 0 344724
0 shapka.jpg 1243 1243 N 1375658 264762 product 344724 M 0 344724
0 shapka.jpg 1243 1243 N 1375659 264763 product 344724 M 0 344724
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 kastor_0hra-pz.jpg 1243 1037 N 1375718 264819 product 345163 M 0 345163
0 kastor_0hra-pz.jpg 1243 1037 N 1375719 264820 product 345163 M 0 345163
0 kastor_0hra-pz.jpg 1243 1037 N 1375720 264821 product 345163 M 0 345163
0 kastor_0hra-pz.jpg 1243 1037 N 1375721 264822 product 345163 M 0 345163
0 black2.jpg 1243 1230 N 1377001 264918 product 344535 M 0 344535
0 black2.jpg 1243 1230 N 1377002 264919 product 344535 M 0 344535
0 black2.jpg 1243 1230 N 1377003 264920 product 344535 M 0 344535
0 black2.jpg 1243 1230 N 1377004 264921 product 344535 M 0 344535
0 black3.jpg 1243 1487 N 1377225 264927 product 344729 M 0 344729
0 black3.jpg 1243 1487 N 1377226 264928 product 344729 M 0 344729
0 black3.jpg 1243 1487 N 1377227 264929 product 344729 M 0 344729
0 black3.jpg 1243 1487 N 1377228 264930 product 344729 M 0 344729
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 sandalebeige.jpg 1243 1487 N 1343168 264219 product 344542 M 1 344542
0 kepuce_me_ngjitese_blu.jpg 1243 1231 N 1375605 264705 product 348541 M 1 348541
0 kepucebeige_ycuz-df.jpg 1243 1241 N 1375879 264824 product 345051 M 1 345051
0 kepucebeige_ycuz-df.jpg 1243 1241 N 1375880 264825 product 345051 M 1 345051
0 kepucebeige_ycuz-df.jpg 1243 1241 N 1375881 264826 product 345051 M 1 345051
0 color_green_a6ap-ma.jpg 1243 1525 N 1376550 264847 product 344526 M 1 344526
0 sandalebeige.jpg 1243 1487 N 1376751 264914 product 344542 M 1 344542
0 sandalebeige.jpg 1243 1487 N 1376752 264915 product 344542 M 1 344542
0 sandalebeige.jpg 1243 1487 N 1376753 264916 product 344542 M 1 344542
0 sandalebeige.jpg 1243 1487 N 1376754 264917 product 344542 M 1 344542
0 nude2_dnsy-39.jpg 1243 1329 N 1377130 264922 product 348593 M 1 348593
0 nude2_sizt-hs.jpg 1243 1329 N 1377131 264923 product 348594 M 1 348594
0 nude2_u537-bp.jpg 1243 1329 N 1377162 264924 product 348595 M 1 348595
0 nude2_65zo-dg.jpg 1243 1329 N 1377163 264925 product 348596 M 1 348596
0 nude2_3x89-ue.jpg 1243 1329 N 1377164 264926 product 348597 M 1 348597
0 kepucepink_0jhw-41.jpg 1243 1120 N 1377265 264931 product 348599 M 1 348599
0 kepucepink_vi8w-7y_xj3o-x4.jpg 1243 1120 N 1377299 264935 product 348603 M 1 348603
0 kepucebeige_ycuz-df_hozp-ia.jpg 1243 1241 N 1377810 264950 product 348615 M 1 348615
0 kepucebeige_ycuz-df_w9g7-o7.jpg 1243 1241 N 1377811 264951 product 348616 M 1 348616
0 kepucebeige_ycuz-df_6ey0-2w.jpg 1243 1241 N 1377843 264952 product 348618 M 1 348618
0 kepucebeige_ycuz-df_dub5-2q.jpg 1243 1241 N 1377844 264953 product 348619 M 1 348619
0 kepucebeige_ycuz-df_cvgk-qe.jpg 1243 1241 N 1377845 264954 product 348620 M 1 348620
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 black1.jpg 1236 1226 N 1340499 263720 product 344529 M 2 344529
0 blue1_o9dw-b5.jpg 1243 1231 N 1343321 264226 product 345134 M 2 345134
0 122.jpg 1243 1511 N 1376559 264851 product 348571 M 2 348571
0 122_jj0x-3f.jpg 1243 1511 N 1376560 264852 product 348572 M 2 348572
0 122_q9zv-hu.jpg 1243 1511 N 1376561 264853 product 348573 M 2 348573
0 122_eih2-ww.jpg 1243 1511 N 1376592 264854 product 348574 M 2 348574
0 122_smtp-ic.jpg 1243 1511 N 1376613 264855 product 348575 M 2 348575
0 white1_woai-gk_grd5-sk.jpg 1243 1212 N 1376755 264909 product 348587 M 2 348587
0 white1_woai-gk_d18h-bb.jpg 1243 1212 N 1376756 264910 product 348588 M 2 348588
0 white1_woai-gk_08l0-ye.jpg 1243 1212 N 1376787 264911 product 348589 M 2 348589
0 white1_woai-gk_hj1v-1w.jpg 1243 1212 N 1376788 264912 product 348590 M 2 348590
0 white1_woai-gk_y3zi-oa.jpg 1243 1212 N 1376789 264913 product 348591 M 2 348591
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
0 roze_22x3-k5_nlnz-vr.jpg 1243 1000 N 1376727 264888 product 348577 M 3 348577
0 roze_22x3-k5_x12x-9q.jpg 1243 1000 N 1376728 264889 product 348578 M 3 348578
0 roze_22x3-k5_u5sk-tc.jpg 1243 1000 N 1376729 264890 product 348579 M 3 348579
0 roze_22x3-k5_vaos-g4.jpg 1243 1000 N 1376730 264891 product 348580 M 3 348580
0 roze_22x3-k5_l0l4-nk.jpg 1243 1000 N 1376731 264892 product 348581 M 3 348581
0 green_iz7e-p1_s4w9-x1.jpg 1243 1533 N 1376732 264893 product 348582 M 3 348582
0 green_iz7e-p1_usx0-93.jpg 1243 1533 N 1376733 264894 product 348583 M 3 348583
0 green_iz7e-p1_yol8-3e.jpg 1243 1533 N 1376734 264895 product 348584 M 3 348584
0 green_iz7e-p1_je64-qy.jpg 1243 1533 N 1376735 264896 product 348585 M 3 348585
0 green_iz7e-p1_7ce9-9o.jpg 1243 1533 N 1376736 264897 product 348586 M 3 348586
0 blue_u7cf-ic_t3yk-0b.jpg 1243 768 N 1377615 264940 product 348605 M 3 348605
0 blue_u7cf-ic_s79n-yc.jpg 1243 768 N 1377616 264941 product 348606 M 3 348606
0 blue_u7cf-ic_f5os-98.jpg 1243 768 N 1377647 264942 product 348607 M 3 348607
0 blue_u7cf-ic_jckg-g4.jpg 1243 768 N 1377648 264943 product 348608 M 3 348608
0 blue_u7cf-ic_psrf-sq.jpg 1243 768 N 1377709 264944 product 348609 M 3 348609
0 pink_hkyi-22_ptsh-fu.jpg 1243 913 N 1377710 264945 product 348610 M 3 348610
0 pink_hkyi-22_munc-mg.jpg 1243 913 N 1377711 264946 product 348611 M 3 348611
0 pink_hkyi-22_4yji-qd.jpg 1243 913 N 1377712 264947 product 348612 M 3 348612
0 pink_hkyi-22_00t1-2y.jpg 1243 913 N 1377713 264948 product 348613 M 3 348613
0 pink_hkyi-22_wnyd-lt.jpg 1243 913 N 1377714 264949 product 348614 M 3 348614
0 beige_08c0-11_kb2k-kq.jpg 1209 910 N 1378063 264955 product 348623 M 3 348623