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 (
    12594, 12599, 12604, 12595, 12596, 12597, 
    12598, 12609, 12614, 12619, 12610, 
    12611, 12612, 12613, 12424, 12439, 
    12454, 12429, 12434, 12425, 12426, 
    12427, 12428, 12554, 12569, 12584, 
    12559, 12564, 12555, 12556, 12557, 
    12558, 12536, 12541, 12537, 12538, 
    12539, 12540, 12546, 12550, 12547, 
    12548, 12549, 13127, 13128, 13129, 
    13130, 13131, 13132, 13133, 12464, 
    12474, 12484, 12469, 12465, 12466, 
    12467, 12468, 12624, 12634, 12644, 
    12629, 12625, 12626, 12627, 12628, 
    12654, 12664, 12674, 12659, 12655, 
    12656, 12657, 12658, 13148, 13149, 
    13151, 13153, 13155, 13157, 13159, 
    13161, 13152
  ) 
ORDER BY 
  cscart_images_links.position, 
  cscart_images_links.pair_id

Query time 0.00391

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "214.26"
    },
    "ordering_operation": {
      "using_filesort": true,
      "cost_info": {
        "sort_cost": "90.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": 90,
            "rows_produced_per_join": 90,
            "filtered": "100.00",
            "index_condition": "((`test2_gaseus`.`cscart_images_links`.`object_type` = 'product') and (`test2_gaseus`.`cscart_images_links`.`type` = 'M') and (`test2_gaseus`.`cscart_images_links`.`object_id` in (12594,12599,12604,12595,12596,12597,12598,12609,12614,12619,12610,12611,12612,12613,12424,12439,12454,12429,12434,12425,12426,12427,12428,12554,12569,12584,12559,12564,12555,12556,12557,12558,12536,12541,12537,12538,12539,12540,12546,12550,12547,12548,12549,13127,13128,13129,13130,13131,13132,13133,12464,12474,12484,12469,12465,12466,12467,12468,12624,12634,12644,12629,12625,12626,12627,12628,12654,12664,12674,12659,12655,12656,12657,12658,13148,13149,13151,13153,13155,13157,13159,13161,13152)))",
            "cost_info": {
              "read_cost": "52.26",
              "eval_cost": "9.00",
              "prefix_cost": "61.26",
              "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": [
              "test2_gaseus.cscart_images_links.detailed_id"
            ],
            "rows_examined_per_scan": 1,
            "rows_produced_per_join": 90,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "22.50",
              "eval_cost": "9.00",
              "prefix_cost": "92.76",
              "data_read_per_join": "68K"
            },
            "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": [
              "test2_gaseus.cscart_images.image_id",
              "const",
              "const"
            ],
            "rows_examined_per_scan": 1,
            "rows_produced_per_join": 90,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "22.50",
              "eval_cost": "9.00",
              "prefix_cost": "124.26",
              "data_read_per_join": "53K"
            },
            "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 1380699356-15468-1-3_600x600_2x.jpg 500 407 N 11896 12424 product 15379 M 0 15379
0 1380699356-15468-1-3_600x600_2x_5nz5-jd.jpg 500 407 N 11897 12425 product 15380 M 0 15380
0 1380699356-15468-1-3_600x600_2x_aa7i-tr.jpg 500 407 N 11898 12426 product 15381 M 0 15381
0 1380699356-15468-1-3_600x600_2x_tip3-nq.jpg 500 407 N 11899 12427 product 15382 M 0 15382
0 1380699356-15468-1-3_600x600_2x_e1jm-wt.jpg 500 407 N 11900 12428 product 15383 M 0 15383
0 1380699356-15468-1-3_600x600_2x_sg67-o0.jpg 500 407 N 11901 12429 product 15384 M 0 15384
0 1380699356-15468-1-3_600x600_2x_8rit-ul.jpg 500 407 N 11906 12434 product 15389 M 0 15389
0 1380699356-15468-1-3_600x600_2x_vxwl-pk.jpg 500 407 N 11911 12439 product 15394 M 0 15394
0 1380699356-15468-1-3_600x600_2x_qznl-3j.jpg 500 407 N 11926 12454 product 15409 M 0 15409
0 1549537407-27672_600x600_2x.jpg 500 365 N 11936 12464 product 15419 M 0 15419
0 1549537407-27672_600x600_2x_kyjf-vi.jpg 500 365 N 11937 12465 product 15420 M 0 15420
0 1549537407-27672_600x600_2x_29m5-m2.jpg 500 365 N 11938 12466 product 15421 M 0 15421
0 1549537407-27672_600x600_2x_5kjh-b6.jpg 500 365 N 11939 12467 product 15422 M 0 15422
0 1549537407-27672_600x600_2x_1diw-7l.jpg 500 365 N 11940 12468 product 15423 M 0 15423
0 1549537407-27672_600x600_2x_ue7k-ic.jpg 500 365 N 11941 12469 product 15424 M 0 15424
0 1549537407-27672_600x600_2x_mxeq-ip.jpg 500 365 N 11946 12474 product 15429 M 0 15429
0 1549537407-27672_600x600_2x_bueo-l8.jpg 500 365 N 11956 12484 product 15439 M 0 15439
0 Thanos-L1_600x600.jpg 600 574 N 12008 12536 product 15491 M 0 15491
0 Thanos-L1_600x600_hc29-4o.jpg 600 574 N 12009 12537 product 15492 M 0 15492
0 Thanos-L1_600x600_npkf-is.jpg 600 574 N 12010 12538 product 15493 M 0 15493
0 Thanos-L1_600x600_gtg3-jd.jpg 600 574 N 12011 12539 product 15494 M 0 15494
0 Thanos-L1_600x600_adfg-2i.jpg 600 574 N 12012 12540 product 15495 M 0 15495
0 Thanos-L1_600x600_m7cw-og.jpg 600 574 N 12013 12541 product 15496 M 0 15496
0 Thanos_L2_600x600_2x_tp50-va.jpg 1128 1200 N 12018 12546 product 15501 M 0 15501
0 Thanos_L2_600x600_2x_1zkj-qa.jpg 1128 1200 N 12019 12547 product 15502 M 0 15502
0 Thanos_L2_600x600_2x_3in1-gj.jpg 1128 1200 N 12020 12548 product 15503 M 0 15503
0 Thanos_L2_600x600_2x_j9x9-dx.jpg 1128 1200 N 12021 12549 product 15504 M 0 15504
0 Thanos_L2_600x600_2x_te60-9y.jpg 1128 1200 N 12022 12550 product 15505 M 0 15505
0 1380701864-32684-1-2_600x600.jpg 500 451 N 12026 12554 product 15509 M 0 15509
0 1380701864-32684-1-2_600x600_ndzm-1h.jpg 500 451 N 12027 12555 product 15510 M 0 15510
0 1380701864-32684-1-2_600x600_9trw-iz.jpg 500 451 N 12028 12556 product 15511 M 0 15511
0 1380701864-32684-1-2_600x600_pfxs-py.jpg 500 451 N 12029 12557 product 15512 M 0 15512
0 1380701864-32684-1-2_600x600_wsda-2x.jpg 500 451 N 12030 12558 product 15513 M 0 15513
0 1380701864-32684-1-2_600x600_ykxu-31.jpg 500 451 N 12031 12559 product 15514 M 0 15514
0 1380701864-32684-1-2_600x600_glm2-5a.jpg 500 451 N 12036 12564 product 15519 M 0 15519
0 1380701864-32684-1-2_600x600_vui2-7p.jpg 500 451 N 12041 12569 product 15524 M 0 15524
0 1380701864-32684-1-2_600x600_yj6z-0x.jpg 500 451 N 12056 12584 product 15539 M 0 15539
0 1381127127-11093-1-2_600x600_2x.jpg 443 500 N 12066 12594 product 15549 M 0 15549
0 1381127127-11093-1-2_600x600_2x_1rj7-fu.jpg 443 500 N 12067 12595 product 15550 M 0 15550
0 1381127127-11093-1-2_600x600_2x_ity4-wg.jpg 443 500 N 12068 12596 product 15551 M 0 15551
0 1381127127-11093-1-2_600x600_2x_vrr2-df.jpg 443 500 N 12069 12597 product 15552 M 0 15552
0 1381127127-11093-1-2_600x600_2x_4tq2-2y.jpg 443 500 N 12070 12598 product 15553 M 0 15553
0 1381127127-11093-1-2_600x600_2x_ov5q-5t.jpg 443 500 N 12071 12599 product 15554 M 0 15554
0 1381127127-11093-1-2_600x600_2x_3fxx-2n.jpg 443 500 N 12076 12604 product 15559 M 0 15559
0 1381224022-17016_600x600_2x.jpg 500 436 N 12081 12609 product 15564 M 0 15564
0 1381224022-17016_600x600_2x_0he0-zu.jpg 500 436 N 12082 12610 product 15565 M 0 15565
0 1381224022-17016_600x600_2x_a3tf-ba.jpg 500 436 N 12083 12611 product 15566 M 0 15566
0 1381224022-17016_600x600_2x_mu9d-iu.jpg 500 436 N 12084 12612 product 15567 M 0 15567
0 1381224022-17016_600x600_2x_5elx-kb.jpg 500 436 N 12085 12613 product 15568 M 0 15568
0 1381224022-17016_600x600_2x_tl3d-6j.jpg 500 436 N 12086 12614 product 15569 M 0 15569
0 1381224022-17016_600x600_2x_tkdt-11.jpg 500 436 N 12091 12619 product 15574 M 0 15574
0 1551266366-16176-1-2_600x600_2x.jpg 500 202 N 12096 12624 product 15579 M 0 15579
0 1551266366-16176-1-2_600x600_2x_jv3z-53.jpg 500 202 N 12097 12625 product 15580 M 0 15580
0 1551266366-16176-1-2_600x600_2x_byhp-2q.jpg 500 202 N 12098 12626 product 15581 M 0 15581
0 1551266366-16176-1-2_600x600_2x_fbqh-k2.jpg 500 202 N 12099 12627 product 15582 M 0 15582
0 1551266366-16176-1-2_600x600_2x_3zap-4b.jpg 500 202 N 12100 12628 product 15583 M 0 15583
0 1551266366-16176-1-2_600x600_2x_8me2-wh.jpg 500 202 N 12101 12629 product 15584 M 0 15584
0 1380013200-5963_600x600_2x.jpg 500 250 N 12106 12634 product 15589 M 0 15589
0 1380013200-5963_600x600_2x_k9qd-pw.jpg 500 250 N 12116 12644 product 15599 M 0 15599
0 1380006508-15716-1_600x600_2x.jpg 500 255 N 12126 12654 product 15609 M 0 15609
0 1380006508-15716-1_600x600_2x_53rk-mi.jpg 500 255 N 12127 12655 product 15610 M 0 15610
0 1380006508-15716-1_600x600_2x_ezsp-ed.jpg 500 255 N 12128 12656 product 15611 M 0 15611
0 1380006508-15716-1_600x600_2x_f6x4-qz.jpg 500 255 N 12129 12657 product 15612 M 0 15612
0 1380006508-15716-1_600x600_2x_nqau-nx.jpg 500 255 N 12130 12658 product 15613 M 0 15613
0 1380006508-15716-1_600x600_2x_mwvn-vh.jpg 500 255 N 12131 12659 product 15614 M 0 15614
0 1380016986-4514_600x600_2x.jpg 500 255 N 12136 12664 product 15619 M 0 15619
0 1380016986-4514_600x600_2x_71g1-4m.jpg 500 255 N 12146 12674 product 15629 M 0 15629
0 Seite-63-474-310-BS-50-300-LabLine_600x600.jpg 600 400 N 18840 13127 product 22321 M 0 22321
0 Seite-63-474-310-BS-50-300-LabLinepB4avxtQSV3da_600x600.jpg 600 400 N 18841 13128 product 22322 M 0 22322
0 Seite-63-474-310-BS-50-300-LabLineJwpphJcukclTh_600x600.jpg 600 400 N 18842 13129 product 22323 M 0 22323
0 Seite-63-474-310-BS-50-300-LabLinev6trbPfjN5C8I_600x600.jpg 600 400 N 18843 13130 product 22324 M 0 22324
0 Seite-63-474-310-BS-50-300-LabLinerjkWUnF3lxOhu_600x600.jpg 600 400 N 18844 13131 product 22325 M 0 22325
0 Seite-63-474-310-BS-50-300-LabLinelsAAWOot1HEfG_600x600.jpg 600 400 N 18845 13132 product 22326 M 0 22326
0 Seite-63-474-310-BS-50-300-LabLineB7L85hw9QqMTW_600x600.jpg 600 400 N 18846 13133 product 22327 M 0 22327
0 Seite-68-SE-10-300K-LabLine-LG_600x600.jpg 600 400 N 18861 13148 product 22342 M 0 22342
0 Seite-68-SE-10-300K-LabLine-LGZS6nx8a9W1PKI_600x600.jpg 600 400 N 18862 13149 product 22343 M 0 22343
0 Seite-68-SE-10-300K-LabLine-LGuegeKPlHRwntI_600x600.jpg 600 400 N 18864 13151 product 22345 M 0 22345
0 Seite-68-SE-10-300K-LabLine-LGgXodSkIt6qlRE_600x600.jpg 600 400 N 18865 13152 product 22346 M 0 22346
0 Seite-68-SE-10-300K-LabLine-LGH9hVI7YZ2IaLA_600x600.jpg 600 400 N 18866 13153 product 22347 M 0 22347
0 Seite-68-SE-10-300K-LabLine-LGsP0rx3NSA0QuW_600x600.jpg 600 400 N 18868 13155 product 22349 M 0 22349
0 Seite-68-SE-10-300K-LabLine-LGywG1fz3KXdIxH_600x600.jpg 600 400 N 18870 13157 product 22351 M 0 22351
0 Seite-68-SE-10-300K-LabLine-LGDIC8RCYzwyCx7_600x600.jpg 600 400 N 18872 13159 product 22353 M 0 22353
0 Seite-68-SE-10-300K-LabLine-LGIkcMdIAuz4M2j_600x600.jpg 600 400 N 18874 13161 product 22355 M 0 22355