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 (
    12988, 12990, 12992, 12994, 12996, 12998, 
    12989, 13000, 13002, 13004, 13006, 
    13008, 13010, 13012, 13001, 13148, 
    13149, 13151, 13153, 13155, 13157, 
    13159, 13161, 13152, 12928, 13134, 
    13136, 13138, 13140, 13142, 13144, 
    13146, 12929, 12926, 12930, 12932, 
    12934, 12936, 12938, 12940, 12927, 
    12942, 12944, 12946, 12948, 12950, 
    12952, 12954, 12943, 12850, 12851, 
    12852, 12855, 12856, 12857, 12858, 
    12862, 12863, 12864, 12865, 12867, 
    12868, 12869, 12870, 12873, 12874, 
    12875, 12876, 12877, 12878, 12882, 
    12883, 12884, 12885, 12889, 12890, 
    12891, 12892, 12894, 12895, 12896, 
    12899, 12897
  ) 
ORDER BY 
  cscart_images_links.position, 
  cscart_images_links.pair_id

Query time 0.00234

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "319.61"
    },
    "ordering_operation": {
      "using_filesort": true,
      "cost_info": {
        "sort_cost": "139.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": 139,
            "rows_produced_per_join": 139,
            "filtered": "100.00",
            "index_condition": "((`gaseus`.`cscart_images_links`.`object_type` = 'product') and (`gaseus`.`cscart_images_links`.`type` = 'M') and (`gaseus`.`cscart_images_links`.`object_id` in (12988,12990,12992,12994,12996,12998,12989,13000,13002,13004,13006,13008,13010,13012,13001,13148,13149,13151,13153,13155,13157,13159,13161,13152,12928,13134,13136,13138,13140,13142,13144,13146,12929,12926,12930,12932,12934,12936,12938,12940,12927,12942,12944,12946,12948,12950,12952,12954,12943,12850,12851,12852,12855,12856,12857,12858,12862,12863,12864,12865,12867,12868,12869,12870,12873,12874,12875,12876,12877,12878,12882,12883,12884,12885,12889,12890,12891,12892,12894,12895,12896,12899,12897)))",
            "cost_info": {
              "read_cost": "69.41",
              "eval_cost": "13.90",
              "prefix_cost": "83.31",
              "data_read_per_join": "13K"
            },
            "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": [
              "gaseus.cscart_images_links.detailed_id"
            ],
            "rows_examined_per_scan": 1,
            "rows_produced_per_join": 139,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "34.75",
              "eval_cost": "13.90",
              "prefix_cost": "131.96",
              "data_read_per_join": "106K"
            },
            "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": [
              "gaseus.cscart_images.image_id",
              "const",
              "const"
            ],
            "rows_examined_per_scan": 1,
            "rows_produced_per_join": 139,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "34.75",
              "eval_cost": "13.90",
              "prefix_cost": "180.61",
              "data_read_per_join": "82K"
            },
            "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 Druckminderer-Vulkan-E10-Vulkan-LabLine-Sauerstoff-2_600x600.jpg 256 500 N 18563 12850 product 22044 M 0 22044
0 Druckminderer-Vulkan-E10-Vulkan-LabLine-Acetylen-2_600x600.jpg 256 500 N 18564 12851 product 22045 M 0 22045
0 Druckminderer-Vulkan-E10-Vulkan-LabLine-CO2-Argon-2_600x600.jpg 256 500 N 18565 12852 product 22046 M 0 22046
0 Druckminderer-Vulkan-E10-Vulkan-LabLine-Helium-2_600x600.jpg 256 500 N 18568 12855 product 22049 M 0 22049
0 Druckminderer-Vulkan-E10-Vulkan-LabLine-Stickstoff-2_600x600.jpg 256 500 N 18569 12856 product 22050 M 0 22050
0 Druckminderer-Vulkan-E10-Vulkan-LabLine-Wasserstoff-2_600x600.jpg 256 500 N 18570 12857 product 22051 M 0 22051
0 Druckminderer-Vulkan-E10-Vulkan-LabLine-Formiergas-2_600x600.jpg 256 500 N 18571 12858 product 22052 M 0 22052
0 Druckminderer-Vulkan-E10-Vulkan-LabLine-Druckluft-2_600x600.jpg 256 500 N 18575 12862 product 22056 M 0 22056
0 Druckminderer-Vulkan-E10-Vulkan-LabLine-Pr_fgas-2_600x600.jpg 256 500 N 18576 12863 product 22057 M 0 22057
0 Druckminderer-Vulkan-E10-Vulkan-LabLine-Lachgas-2_600x600.jpg 256 500 N 18577 12864 product 22058 M 0 22058
0 Druckminderer-Vulkan-E10-Vulkan-LabLine-Propan-2_600x600.jpg 256 500 N 18578 12865 product 22059 M 0 22059
0 Druckminderer-Vulkan-E10-Vulkan-LabLine-Ethen-2_600x600.jpg 256 500 N 18580 12867 product 22061 M 0 22061
0 Druckminderer-Vulkan-E10-Vulkan-LabLine-Methan-2_600x600.jpg 256 500 N 18581 12868 product 22062 M 0 22062
0 178913-E10F-Flowmeter-LabLine-Seite-70rDDHT4zLE3Exa_600x600.jpg 406 600 N 18582 12869 product 22063 M 0 22063
0 178913-E10F-Flowmeter-LabLine-Seite-70rDDHT4zLE3Exa_600x600_j6y4-qc.jpg 406 600 N 18583 12870 product 22064 M 0 22064
0 178913-E10F-Flowmeter-LabLine-Seite-70rDDHT4zLE3Exa_600x600_hhbj-ie.jpg 406 600 N 18586 12873 product 22067 M 0 22067
0 178913-E10F-Flowmeter-LabLine-Seite-70rDDHT4zLE3Exa_600x600_v2sf-7o.jpg 406 600 N 18587 12874 product 22068 M 0 22068
0 178913-E10F-Flowmeter-LabLine-Seite-70rDDHT4zLE3Exa_600x600_pa6z-7s.jpg 406 600 N 18588 12875 product 22069 M 0 22069
0 1328891146-26301-1_600x600.jpg 284 580 N 18589 12876 product 22070 M 0 22070
0 1328891164-26984-1_600x600.jpg 284 580 N 18590 12877 product 22071 M 0 22071
0 1328891180-27665-1_600x600.jpg 284 580 N 18591 12878 product 22072 M 0 22072
0 1328891195-28253-1_600x600.jpg 284 580 N 18595 12882 product 22076 M 0 22076
0 1328890972-18802-1_600x600.jpg 284 580 N 18596 12883 product 22077 M 0 22077
0 1328891008-20352-1_600x600.jpg 284 580 N 18597 12884 product 22078 M 0 22078
0 1330067479-16855_600x600.jpg 284 580 N 18598 12885 product 22079 M 0 22079
0 1328891131-25737-1_600x600.jpg 284 580 N 18602 12889 product 22083 M 0 22083
0 1328890990-19554-1_600x600.jpg 284 580 N 18603 12890 product 22084 M 0 22084
0 Entnahmestelle-Vulkan-E10_600x600.jpg 284 580 N 18604 12891 product 22085 M 0 22085
0 1328891084-23715-1_600x600.jpg 284 580 N 18605 12892 product 22086 M 0 22086
0 1328891101-24324-1_600x600.jpg 284 580 N 18607 12894 product 22088 M 0 22088
0 1328891116-25037-1_600x600.jpg 284 580 N 18608 12895 product 22089 M 0 22089
0 108913-E10F-Flowmeter-Seite-29bCrCerCmwQ5oh_600x600.jpg 474 600 N 18609 12896 product 22090 M 0 22090
0 108913-E10F-Flowmeter-Seite-29_600x600.jpg 474 600 N 18610 12897 product 22091 M 0 22091
0 108913-E10F-Flowmeter-Seite-29913jUQoLkmMN0_600x600.jpg 474 600 N 18612 12899 product 22093 M 0 22093
0 1337333401-2596_600x600.jpg 580 392 N 18639 12926 product 22120 M 0 22120
0 x414802_600x600.jpg 580 392 N 18640 12927 product 22121 M 0 22121
0 410901_600x600.jpg 600 430 N 18641 12928 product 22122 M 0 22122
0 Seite-68-SE-10-300K-LabLinehhetSQbq1WfDf_600x600.jpg 600 400 N 18642 12929 product 22123 M 0 22123
0 1337334338-6630_600x600.jpg 580 392 N 18643 12930 product 22124 M 0 22124
0 1337334431-21247_600x600.jpg 580 392 N 18645 12932 product 22126 M 0 22126
0 1337334619-23541_600x600.jpg 580 392 N 18647 12934 product 22128 M 0 22128
0 1337334706-2565_600x600.jpg 580 392 N 18649 12936 product 22130 M 0 22130
0 1337334774-12617_600x600.jpg 580 392 N 18651 12938 product 22132 M 0 22132
0 1337334851-23852_600x600.jpg 580 392 N 18653 12940 product 22134 M 0 22134
0 Seite-22-EB-60-300QeG6JieNC6WHu_600x600.jpg 600 400 N 18655 12942 product 22136 M 0 22136
0 Seite-22-EB-60-300pxiPB44ZQ5MU6_600x600.jpg 600 400 N 18656 12943 product 22137 M 0 22137
0 Seite-22-EB-60-300gQWPs1F1Yk5u1_600x600.jpg 600 400 N 18657 12944 product 22138 M 0 22138
0 Seite-22-EB-60-300ak0dHLdOOv5ja_600x600.jpg 600 400 N 18659 12946 product 22140 M 0 22140
0 Seite-22-EB-60-300SVovobv9VrPfu_600x600.jpg 600 400 N 18661 12948 product 22142 M 0 22142
0 Seite-22-EB-60-3007KP4WMntsMJTk_600x600.jpg 600 400 N 18663 12950 product 22144 M 0 22144
0 Seite-22-EB-60-300QIbPTOgZA8dv5_600x600.jpg 600 400 N 18665 12952 product 22146 M 0 22146
0 Seite-22-EB-60-300Ls3arj3bVb4pk_600x600.jpg 600 400 N 18667 12954 product 22148 M 0 22148
0 414-614-EB-75-3008GoXgg05MzRST_600x600.jpg 600 400 N 18701 12988 product 22182 M 0 22182
0 414-614-EB-75-300_600x600.jpg 600 400 N 18702 12989 product 22183 M 0 22183
0 414-614-EB-75-300WX2ZWMxq42asT_600x600.jpg 600 400 N 18703 12990 product 22184 M 0 22184
0 414-614-EB-75-300dgEKOquODDywF_600x600.jpg 600 400 N 18705 12992 product 22186 M 0 22186
0 414-614-EB-75-300FdfheikvQR57E_600x600.jpg 600 400 N 18707 12994 product 22188 M 0 22188
0 414-614-EB-75-3000CVQa4SNpS1hf_600x600.jpg 600 400 N 18709 12996 product 22190 M 0 22190
0 414-614-EB-75-300PaqjlirM4Gn1O_600x600.jpg 600 400 N 18711 12998 product 22192 M 0 22192
0 Seite-22-414-809-EB-80KA5ho6myqnfRO_600x600.jpg 600 460 N 18713 13000 product 22194 M 0 22194
0 Seite-22-414-809-EB-80_600x600.jpg 600 460 N 18714 13001 product 22195 M 0 22195
0 Seite-22-414-809-EB-80yXlwXUwcWM0FB_600x600.jpg 600 460 N 18715 13002 product 22196 M 0 22196
0 Seite-22-414-809-EB-80hakV5b2EYgaYH_600x600.jpg 600 460 N 18717 13004 product 22198 M 0 22198
0 Seite-22-414-809-EB-80vvIE3PVMNRX9T_600x600.jpg 600 460 N 18719 13006 product 22200 M 0 22200
0 Seite-22-414-809-EB-80FoGDvCgvj8KTo_600x600.jpg 600 460 N 18721 13008 product 22202 M 0 22202
0 Seite-22-414-809-EB-80W2XtxiCfNqMDt_600x600.jpg 600 460 N 18723 13010 product 22204 M 0 22204
0 Seite-22-414-809-EB-809jh44WQq4O81j_600x600.jpg 600 460 N 18725 13012 product 22206 M 0 22206
0 Seite-68-SE-10-300K-LabLine_600x600.jpg 600 400 N 18847 13134 product 22328 M 0 22328
0 Seite-68-SE-10-300K-LabLineKGvrUQ1I9ZlqW_600x600.jpg 600 400 N 18849 13136 product 22330 M 0 22330
0 Seite-68-SE-10-300K-LabLine1zRoBjd0Pe37z_600x600.jpg 600 400 N 18851 13138 product 22332 M 0 22332
0 Seite-68-SE-10-300K-LabLine4HjNc2r9LAUtZ_600x600.jpg 600 400 N 18853 13140 product 22334 M 0 22334
0 Seite-68-SE-10-300K-LabLineeEKRHI7paiXSD_600x600.jpg 600 400 N 18855 13142 product 22336 M 0 22336
0 Seite-68-SE-10-300K-LabLinejl90AtceKO2fC_600x600.jpg 600 400 N 18857 13144 product 22338 M 0 22338
0 Seite-68-SE-10-300K-LabLineOAEUPf8atBq9r_600x600.jpg 600 400 N 18859 13146 product 22340 M 0 22340
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