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 (
    3166, 3186, 3167, 3171, 3174, 3180, 3187, 
    3193, 3195, 3271, 3282, 6757, 6842, 
    7008, 3181, 3175, 6829, 6737, 3168, 
    6738, 6740, 426, 436, 602, 657, 667, 
    688, 699, 710, 3287, 3316, 6761, 6850, 
    6859, 7279, 7352, 7356, 751, 2555, 2989, 
    6565, 6566, 6567, 6569, 2984, 2985, 
    2986, 2987, 2988, 6568, 3290, 3178, 
    3188, 3196, 3274, 3276, 3285, 3286, 
    6760, 7278, 7353, 7357, 3292
  ) 
ORDER BY 
  cscart_images_links.position, 
  cscart_images_links.pair_id

Query time 0.00349

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "153.36"
    },
    "ordering_operation": {
      "using_filesort": true,
      "cost_info": {
        "sort_cost": "64.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": 64,
            "rows_produced_per_join": 64,
            "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 (3166,3186,3167,3171,3174,3180,3187,3193,3195,3271,3282,6757,6842,7008,3181,3175,6829,6737,3168,6738,6740,426,436,602,657,667,688,699,710,3287,3316,6761,6850,6859,7279,7352,7356,751,2555,2989,6565,6566,6567,6569,2984,2985,2986,2987,2988,6568,3290,3178,3188,3196,3274,3276,3285,3286,6760,7278,7353,7357,3292)))",
            "cost_info": {
              "read_cost": "38.16",
              "eval_cost": "6.40",
              "prefix_cost": "44.56",
              "data_read_per_join": "6K"
            },
            "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": 64,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "16.00",
              "eval_cost": "6.40",
              "prefix_cost": "66.96",
              "data_read_per_join": "49K"
            },
            "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": 64,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "16.00",
              "eval_cost": "6.40",
              "prefix_cost": "89.36",
              "data_read_per_join": "38K"
            },
            "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 1354271839-9764_600x600_2x_55ng-t9_fdn7-qw.jpg 500 399 N 6037 6565 product 9520 M 0 9520
0 1354271839-9764_600x600_2x_5lqu-yz_kj61-43.jpg 500 399 N 6038 6566 product 9521 M 0 9521
0 1354271839-9764_600x600_2x_9kr3-vr_3dui-s0.jpg 500 399 N 6039 6567 product 9522 M 0 9522
0 1354271839-9764_600x600_2x_x0vb-83_mvpy-xu.jpg 500 399 N 6040 6568 product 9523 M 0 9523
0 1354271839-9764_600x600_2x_43cs-9y_o671-tm.jpg 500 399 N 6041 6569 product 9524 M 0 9524
0 276711-F10-300F-Effect-Flowmeter-LabLine-Seite-73jnqvyUrfzX4ND_600x600_2x_4mxp-ma.jpg 1191 1200 N 6209 6737 product 9692 M 0 9692
0 276711-F10-300F-Effect-Flowmeter-LabLine-Seite-73jnqvyUrfzX4ND_600x600_2x_q9vb-i4.jpg 1191 1200 N 6210 6738 product 9693 M 0 9693
0 276711-F10-300F-Effect-Flowmeter-LabLine-Seite-73jnqvyUrfzX4ND_600x600_2x_vaj8-gw.jpg 1191 1200 N 6212 6740 product 9695 M 0 9695
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 Seite-72-F10-300-Effect-LabLinez8MZpIdXuSATJ_600x600_2x.jpg 1200 800 N 6301 6829 product 9784 M 0 9784
0 Seite-72-F10-300-Effect-LabLine2aFmf03h0ksC8_600x600_2x.jpg 1200 800 N 6314 6842 product 9797 M 0 9797
0 Druckminderer-Vulkan-F15-200-2_600x600_2x.jpg 500 455 N 6322 6850 product 9805 M 0 9805
0 1387270102-27683_600x600_2x.jpg 500 476 N 6331 6859 product 9814 M 0 9814
0 1447432387-1306-1_600x600_2x_t1v7-bp.jpg 500 495 N 6480 7008 product 9963 M 0 9963
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 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 1390207837-13512_600x600_2x_a8h4-80.jpg 500 399 N 15256 2555 product 18737 M 0 18737
0 1354271839-9764_600x600_2x_kt9g-vm.jpg 500 399 N 15685 2984 product 19166 M 0 19166
0 1354271839-9764_600x600_2x_g7ei-nj.jpg 500 399 N 15686 2985 product 19167 M 0 19167
0 1354271839-9764_600x600_2x_432f-4r.jpg 500 399 N 15687 2986 product 19168 M 0 19168
0 1354271839-9764_600x600_2x_9tcu-5j.jpg 500 399 N 15688 2987 product 19169 M 0 19169
0 1354271839-9764_600x600_2x_s39v-nl.jpg 500 399 N 15689 2988 product 19170 M 0 19170
0 1354271839-9764_600x600_2x_p79d-9m.jpg 500 399 N 15690 2989 product 19171 M 0 19171
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 276711-F10-300F-Effect-Flowmeter-LabLine-Seite-73jnqvyUrfzX4ND_600x600_2x_j6dh-gm.jpg 1191 1200 N 15869 3168 product 19350 M 0 19350
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 300-Flowmeter-Labline-CO2-Argon-10-95_600x600_2x.jpg 707 800 N 15876 3175 product 19357 M 0 19357
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 Seite-74-F10-2-300-Effect-LabLineMlIA3S57WgaJe_600x600_2x.jpg 1200 800 N 15882 3181 product 19363 M 0 19363
0 Seite-72-F10-300-Effect-LabLine-LGdXHUORL9Aecim_600x600_2x.jpg 1200 800 N 15887 3186 product 19368 M 0 19368
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-LabLine2BorJiMrNEvHi_600x600_2x.jpg 1200 800 N 15988 3287 product 19469 M 0 19469
0 Seite-74-F15-2-300-Effect-LabLineNW71jED0Newwz_600x600_2x.jpg 1200 800 N 15991 3290 product 19472 M 0 19472
0 Druckminderer-Vulkan-F15-200-Effect-LabLine-Pr_fgas-2_600x600_2x.jpg 500 443 N 15993 3292 product 19474 M 0 19474
0 1354176977-32599_600x600_2x.jpg 500 476 N 16017 3316 product 19498 M 0 19498