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 (
    519, 529, 539, 941, 951, 1154, 1013, 1024, 
    1035, 1045, 1129, 2724, 3303, 6861, 
    7010, 7247, 3093, 1002, 4895, 4897, 
    4898, 1153, 4896, 4899, 4900, 4901, 
    1150, 1151, 1152, 3315, 7108, 3307, 
    3313, 3317, 3862, 6844, 7224, 7245, 
    7270, 6843, 3295, 3166, 3167, 3171, 
    3174, 3180, 3187, 3193, 3271, 3282, 
    6757, 6842, 7008, 3294, 3195, 3318, 
    3297, 3298, 3304, 3308, 3309, 3310, 
    3314, 6849, 6856, 6862, 6865, 7057, 
    3687, 1325, 7274, 1327, 1331, 1333, 
    426, 436, 602, 657, 667, 688, 699, 710, 
    5076, 3316, 6761, 6850, 6859, 7279, 
    7352, 7356, 2555, 1326, 751, 1330, 6840, 
    3178, 3188, 3274, 3276, 3285, 3286, 
    3290, 6760, 7278, 7353, 7357, 3196
  ) 
ORDER BY 
  cscart_images_links.position, 
  cscart_images_links.pair_id

Query time 0.00474

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "261.11"
    },
    "ordering_operation": {
      "using_filesort": true,
      "cost_info": {
        "sort_cost": "109.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": 109,
            "rows_produced_per_join": 109,
            "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 (519,529,539,941,951,1154,1013,1024,1035,1045,1129,2724,3303,6861,7010,7247,3093,1002,4895,4897,4898,1153,4896,4899,4900,4901,1150,1151,1152,3315,7108,3307,3313,3317,3862,6844,7224,7245,7270,6843,3295,3166,3167,3171,3174,3180,3187,3193,3271,3282,6757,6842,7008,3294,3195,3318,3297,3298,3304,3308,3309,3310,3314,6849,6856,6862,6865,7057,3687,1325,7274,1327,1331,1333,426,436,602,657,667,688,699,710,5076,3316,6761,6850,6859,7279,7352,7356,2555,1326,751,1330,6840,3178,3188,3274,3276,3285,3286,3290,6760,7278,7353,7357,3196)))",
            "cost_info": {
              "read_cost": "64.91",
              "eval_cost": "10.90",
              "prefix_cost": "75.81",
              "data_read_per_join": "10K"
            },
            "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": 109,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "27.25",
              "eval_cost": "10.90",
              "prefix_cost": "113.96",
              "data_read_per_join": "83K"
            },
            "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": 109,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "27.25",
              "eval_cost": "10.90",
              "prefix_cost": "152.11",
              "data_read_per_join": "64K"
            },
            "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 Seite-74-F10-2-300-Effect-LabLinekEtsMRyV4cFWo_600x600_2x.jpg 1200 800 N 6229 6757 product 9712 M 0 9712
0 Druckminderer-Vulkan-F15-300-Effect-LabLine-Wasserstoff-2_600x600_2x.jpg 500 443 N 6232 6760 product 9715 M 0 9715
0 Seite-74-F15-2-300-Effect-LabLine9sKl29ppWOcWb_600x600_2x.jpg 1200 800 N 6233 6761 product 9716 M 0 9716
0 Druckminderer-Vulkan-F15-200-Effect-LabLine-Stickstoff-2_600x600_2x.jpg 500 443 N 6312 6840 product 9795 M 0 9795
0 Seite-72-F10-300-Effect-LabLine2aFmf03h0ksC8_600x600_2x.jpg 1200 800 N 6314 6842 product 9797 M 0 9797
0 Seite-72-F10-300-Effect-LabLine31Zc2BvQu8FYV_600x600_2x.jpg 1200 800 N 6315 6843 product 9798 M 0 9798
0 1430122396-24970-1_600x600_2x.jpg 500 300 N 6316 6844 product 9799 M 0 9799
0 Druckminderer-Vulkan-F-10-200-Standard-Sauerstoff-2_600x600_2x.jpg 500 474 N 6321 6849 product 9804 M 0 9804
0 Druckminderer-Vulkan-F15-200-2_600x600_2x.jpg 500 455 N 6322 6850 product 9805 M 0 9805
0 Druckminderer-Vulkan-F-10-200-Standard-Ethen-2_600x600_2x.jpg 500 474 N 6328 6856 product 9811 M 0 9811
0 1387270102-27683_600x600_2x.jpg 500 476 N 6331 6859 product 9814 M 0 9814
0 1354553002-17499_600x600_2x.jpg 500 474 N 6333 6861 product 9816 M 0 9816
0 1430122151-16708-1_600x600_2x.jpg 500 300 N 6334 6862 product 9817 M 0 9817
0 Druckminderer-Vulkan-F-10-200-Standard-Lachgas-2_600x600_2x.jpg 500 474 N 6337 6865 product 9820 M 0 9820
0 1447432387-1306-1_600x600_2x_t1v7-bp.jpg 500 495 N 6480 7008 product 9963 M 0 9963
0 1447432387-1306-1_600x600_2x_3fno-mc.jpg 500 495 N 6482 7010 product 9965 M 0 9965
0 1387466304-20319-1_600x600_2x_alk5-k7.jpg 483 500 N 6529 7057 product 10012 M 0 10012
0 306-770-LHR-300-200-Seite-35iC667EhBYIRFc_600x600_2x_id6o-s6.jpg 1200 800 N 6580 7108 product 10063 M 0 10063
0 1387466348-21616-1_600x600_2x_3fuh-ny.jpg 483 500 N 6696 7224 product 10179 M 0 10179
0 306-770-LHR-300-200-Seite-35QAn3UK2M6eDWe_600x600_2x.jpg 1200 800 N 6717 7245 product 10200 M 0 10200
0 306-770-LHR-300-200-Seite-35QAn3UK2M6eDWe_600x600_2x_5rav-4n.jpg 1200 800 N 6719 7247 product 10202 M 0 10202
0 Druckminderer-Vulkan-F-10-200-Effect-Sauerstoff-zweistufig-2_600x600_2x_o8ys-nv.jpg 500 399 N 6742 7270 product 10225 M 0 10225
0 Druckminderer-Vulkan-F-10-200-Effect-Sauerstoff-zweistufig-2_600x600_2x_e7lj-9s.jpg 500 399 N 6746 7274 product 10229 M 0 10229
0 Druckminderer-Vulkan-F-10-200-Effect-Sauerstoff-zweistufig-2_600x600_2x_osa2-fp.jpg 500 399 N 6750 7278 product 10233 M 0 10233
0 Druckminderer-Vulkan-F-10-200-Effect-Sauerstoff-zweistufig-2_600x600_2x_18if-ua.jpg 500 399 N 6751 7279 product 10234 M 0 10234
0 1337327177-22599_600x600_2x_tasq-gq.jpg 580 462 N 6824 7352 product 10307 M 0 10307
0 1337327177-22599_600x600_2x_oyl6-qw.jpg 580 462 N 6825 7353 product 10308 M 0 10308
0 1337327177-22599_600x600_2x_43yx-qc.jpg 580 462 N 6828 7356 product 10311 M 0 10311
0 1337327177-22599_600x600_2x_3r9m-np.jpg 580 462 N 6829 7357 product 10312 M 0 10312
0 1390377119-4252_600x600_2x_9jr0-qd.jpg 500 399 N 13127 426 product 16607 M 0 16607
0 1354272258-16219_600x600_2x_y54s-50.jpg 500 399 N 13137 436 product 16617 M 0 16617
0 226711-F10-300F-Effect-Flowmeter-Seite-49ihw6ccUhGKjGw_600x600_2x_u8fa-08.jpg 1178 1200 N 13220 519 product 16700 M 0 16700
0 226711-F10-300F-Effect-Flowmeter-Seite-49ihw6ccUhGKjGw_600x600_2x_m3ko-vw.jpg 1178 1200 N 13230 529 product 16710 M 0 16710
0 226711-F10-300F-Effect-Flowmeter-Seite-49ihw6ccUhGKjGw_600x600_2x_9l1b-z3.jpg 1178 1200 N 13240 539 product 16720 M 0 16720
0 Druckminderer-Vulkan-F-15-200-Effect-CO2-Argon-2_600x600_2x_0g5m-yb.jpg 500 476 N 13303 602 product 16783 M 0 16783
0 Druckminderer-Vulkan-F-15-300-Effect-Pr_fgas-einstufig-2_600x600_2x_7azd-6n.jpg 500 476 N 13358 657 product 16838 M 0 16838
0 Druckminderer-Vulkan-F-15-300-Effect-Druckluft-einstufig-2_600x600_2x_i94e-hu.jpg 500 476 N 13368 667 product 16848 M 0 16848
0 Druckminderer-Vulkan-F-15-300-Effect-Stickstoff-einstufig-2_600x600_2x_nn94-fq.jpg 500 476 N 13389 688 product 16869 M 0 16869
0 Druckminderer-Vulkan-F-15-300-Effect-Helium-einstufig-2_600x600_2x_h4dn-me.jpg 500 476 N 13400 699 product 16880 M 0 16880
0 Druckminderer-Vulkan-F-15-200-Effect-Methan-2_600x600_2x_8oup-25.jpg 500 476 N 13411 710 product 16891 M 0 16891
0 Druckminderer-Vulkan-F-15-200-Effect-Wasserstoff-2_600x600_2x_hkd3-7p.jpg 500 476 N 13452 751 product 16932 M 0 16932
0 Druckminderer-Vulkan-F-10-300-Effect-Pr_fgas-2_600x600_2x_w8ub-vs.jpg 500 446 N 13642 941 product 17123 M 0 17123
0 Druckminderer-Vulkan-F-10-300-Effect-Druckluft-2_600x600_2x_ouc3-i1.jpg 500 446 N 13652 951 product 17133 M 0 17133
0 Druckminderer-Vulkan-F-10-300-Effect-Stickstoff-2_600x600_2x_v337-or.jpg 500 446 N 13703 1002 product 17184 M 0 17184
0 Druckminderer-Vulkan-F-10-300-Effect-Helium-2_600x600_2x_ax4q-mr.jpg 500 446 N 13714 1013 product 17195 M 0 17195
0 Druckminderer-Vulkan-F-10-300-Effect-Sauerstoff-2_600x600_2x_190u-v8.jpg 500 446 N 13725 1024 product 17206 M 0 17206
0 Druckminderer-Vulkan-F-10-200-Effect-Methan-2_600x600_2x_4mok-mh.jpg 500 474 N 13736 1035 product 17217 M 0 17217
0 Druckminderer-Vulkan-F-10-200-Effect-Lachgas-2_600x600_2x_t4al-u3.jpg 500 474 N 13746 1045 product 17227 M 0 17227
0 Druckminderer-Vulkan-F-10-200-Effect-Wasserstoff-3_600x600_2x_s367-6j.jpg 500 474 N 13830 1129 product 17311 M 0 17311
0 200-Effect-Stickstoff-1-2_600x600_2x_38gr-5z.jpg 500 474 N 13851 1150 product 17332 M 0 17332
0 200-Effect-Stickstoff-1-2_600x600_2x_vrem-lr.jpg 500 474 N 13852 1151 product 17333 M 0 17333
0 200-Effect-Stickstoff-1-2_600x600_2x_f26s-zs.jpg 500 474 N 13853 1152 product 17334 M 0 17334
0 200-Effect-Stickstoff-1-2_600x600_2x_vf0r-k0.jpg 500 474 N 13854 1153 product 17335 M 0 17335
0 200-Effect-Stickstoff-1-2_600x600_2x_7ol6-63.jpg 500 474 N 13855 1154 product 17336 M 0 17336
0 22671111-F15-3002F-Effect-2-Flowmeter-Seite-50_600x600_2x_40f5-oi.jpg 1200 1039 N 14026 1325 product 17507 M 0 17507
0 22671111-F15-3002F-Effect-2-Flowmeter-Seite-50_600x600_2x_sjj6-07.jpg 1200 1039 N 14027 1326 product 17508 M 0 17508
0 22671111-F15-3002F-Effect-2-Flowmeter-Seite-50_600x600_2x_2es2-r9.jpg 1200 1039 N 14028 1327 product 17509 M 0 17509
0 22671111-F15-3002F-Effect-2-Flowmeter-Seite-50ZQyysoq0VrEOY_600x600_2x_mk33-a2.jpg 1200 1039 N 14031 1330 product 17512 M 0 17512
0 22671111-F15-3002F-Effect-2-Flowmeter-Seite-50tCPQQrjoy8AXZ_600x600_2x_9kmk-yq.jpg 1200 1039 N 14032 1331 product 17513 M 0 17513
0 22671111-F15-3002F-Effect-2-Flowmeter-Seite-50wNhTlhoSmB3vF_600x600_2x_x9tp-yz.jpg 1200 1039 N 14034 1333 product 17515 M 0 17515
0 1390207837-13512_600x600_2x_a8h4-80.jpg 500 399 N 15256 2555 product 18737 M 0 18737
0 209000-F10-Ace-3_600x600_2x_6wng-5t.jpg 500 330 N 15425 2724 product 18906 M 0 18906
0 Druckminderer-Vulkan-F-10-200-Effect-Stickstoff-2_600x600_2x_0afz-bi.jpg 500 399 N 15794 3093 product 19275 M 0 19275
0 276711-F10-300F-Effect-Flowmeter-LabLine-Seite-73jnqvyUrfzX4ND_600x600_2x_60kb-0j.jpg 1191 1200 N 15867 3166 product 19348 M 0 19348
0 276711-F10-300F-Effect-Flowmeter-LabLine-Seite-73jnqvyUrfzX4ND_600x600_2x_g1g1-tp.jpg 1191 1200 N 15868 3167 product 19349 M 0 19349
0 Seite-74-F10-2-300-Effect-LabLineJBuIVNZ4mAIwT_600x600_2x.jpg 1200 800 N 15872 3171 product 19353 M 0 19353
0 Seite-72-F10-300-Effect-LabLinemIF5wRhMrIvuu_600x600_2x.jpg 1200 800 N 15875 3174 product 19356 M 0 19356
0 Druckminderer-Vulkan-F15-300-Effect-LabLine-CO2-Argon-2_600x600_2x.jpg 500 443 N 15879 3178 product 19360 M 0 19360
0 Seite-74-F10-2-300-Effect-LabLinevbOlhlmNHaxo4_600x600_2x.jpg 1200 800 N 15881 3180 product 19362 M 0 19362
0 Druckregler-Vulkan-F10-F-300-Effect-LabLine-2_6-26-Wasserstoff_600x600_2x.jpg 707 800 N 15888 3187 product 19369 M 0 19369
0 Druckminderer-Vulkan-F15-300-Effect-LabLine-Formiergas-2_600x600_2x.jpg 500 443 N 15889 3188 product 19370 M 0 19370
0 Seite-74-F10-2-300-Effect-LabLineerzJouJLdbYAN_600x600_2x.jpg 1200 800 N 15894 3193 product 19375 M 0 19375
0 Druckminderer-Vulkan-F10-F-300-Effect-LabLine-4-42-Stickstoff-2_600x600_2x.jpg 442 500 N 15896 3195 product 19377 M 0 19377
0 Druckminderer-Vulkan-F15-300-Effect-LabLine-Stickstoff-2_600x600_2x.jpg 500 443 N 15897 3196 product 19378 M 0 19378
0 Seite-72-F10-300-Effect-LabLineOMFYxN4xq48Mn_600x600_2x.jpg 1200 800 N 15972 3271 product 19453 M 0 19453
0 Druckminderer-Vulkan-F15-200-Effect-LabLine-Druckluft-2_600x600_2x.jpg 500 443 N 15975 3274 product 19456 M 0 19456
0 Druckminderer-Vulkan-F15-200-Effect-LabLine-Helium-2_600x600_2x.jpg 500 443 N 15977 3276 product 19458 M 0 19458
0 Seite-72-F10-300-Effect-LabLineramNqEU7iAhoC_600x600_2x.jpg 1200 800 N 15983 3282 product 19464 M 0 19464
0 Druckminderer-F15-200-Effect-LabLine-Methan-2_600x600_2x.jpg 500 443 N 15986 3285 product 19467 M 0 19467
0 1348673719-24209_600x600_2x.jpg 500 443 N 15987 3286 product 19468 M 0 19468
0 Seite-74-F15-2-300-Effect-LabLineNW71jED0Newwz_600x600_2x.jpg 1200 800 N 15991 3290 product 19472 M 0 19472
0 Seite-74-F10-2-300-Effect-LabLineBdTXAJfzs6kFl_600x600_2x.jpg 1200 800 N 15995 3294 product 19476 M 0 19476
0 Seite-72-F10-300-Effect-LabLine-LGQF81INHmK4oTE_600x600_2x.jpg 1200 800 N 15996 3295 product 19477 M 0 19477
0 1336129216-14840-1_600x600_2x.jpg 580 524 N 15998 3297 product 19479 M 0 19479
0 Druckminderer-Vulkan-F-10-200-Standard-Helium-2_600x600_2x.jpg 500 474 N 15999 3298 product 19480 M 0 19480
0 1412750063-5992_600x600_2x.jpg 500 494 N 16004 3303 product 19485 M 0 19485
0 1430122360-23701-1_600x600_2x.jpg 500 300 N 16005 3304 product 19486 M 0 19486
0 1430122280-21441-1_600x600_2x.jpg 500 300 N 16008 3307 product 19489 M 0 19489
0 Druckminderer-Vulkan-F-10-200-Standard-Methan-2_600x600_2x.jpg 500 474 N 16009 3308 product 19490 M 0 19490
0 Druckminderer-Vulkan-F-10-200-Standard-Propan-2_600x600_2x.jpg 500 474 N 16010 3309 product 19491 M 0 19491
0 1336123424-32397_600x600_2x.jpg 580 517 N 16011 3310 product 19492 M 0 19492
0 1430122176-17545-1_600x600_2x.jpg 500 300 N 16014 3313 product 19495 M 0 19495
0 Druckminderer-Vulkan-F-10-200-Standard-Wasserstoff-2_600x600_2x.jpg 500 474 N 16015 3314 product 19496 M 0 19496
0 1430122131-16154-1_600x600_2x.jpg 500 300 N 16016 3315 product 19497 M 0 19497
0 1354176977-32599_600x600_2x.jpg 500 476 N 16017 3316 product 19498 M 0 19498
0 Vulkan-F10-2NP_600x600_2x.jpg 500 300 N 16018 3317 product 19499 M 0 19499
0 Druckminderer-Vulkan-F-10-200-Standard-Stickstoff-2_600x600_2x.jpg 500 474 N 16019 3318 product 19500 M 0 19500
0 22671111-F15-3002F-Effect-2-Flowmeter-Seite-50wNhTlhoSmB3vF_600x600_2x.jpg 1200 1039 N 16388 3687 product 19869 M 0 19869
0 1430122237-20160-1_600x600_2x_ncto-b2.jpg 500 300 N 16563 3862 product 20044 M 0 20044
0 200-Effect-Stickstoff-1-2_600x600_2x_o322-3q.jpg 500 474 N 17596 4895 product 21077 M 0 21077
0 200-Effect-Stickstoff-1-2_600x600_2x_v7ad-qd.jpg 500 474 N 17597 4896 product 21078 M 0 21078
0 200-Effect-Stickstoff-1-2_600x600_2x_tb5x-b1.jpg 500 474 N 17598 4897 product 21079 M 0 21079
0 200-Effect-Stickstoff-1-2_600x600_2x_8wrf-x6.jpg 500 474 N 17599 4898 product 21080 M 0 21080
0 200-Effect-Stickstoff-1-2_600x600_2x_0dx2-mo.jpg 500 474 N 17600 4899 product 21081 M 0 21081
0 200-Effect-Stickstoff-1-2_600x600_2x_7n3l-07.jpg 500 474 N 17601 4900 product 21082 M 0 21082
0 200-Effect-Stickstoff-1-2_600x600_2x.jpg 500 474 N 17602 4901 product 21083 M 0 21083
0 22671111-F15-3002F-Effect-2-Flowmeter-Seite-50ZQyysoq0VrEOY_600x600_2x.jpg 1200 1039 N 17777 5076 product 21258 M 0 21258