SELECT 
  cscart_images_links.*, 
  cscart_images.image_path, 
  cscart_common_descriptions.description AS alt, 
  cscart_images.image_x, 
  cscart_images.image_y, 
  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 = 'se' 
WHERE 
  cscart_images_links.object_type = 'product' 
  AND cscart_images_links.type = 'A' 
  AND cscart_images_links.object_id IN (
    10353, 8869, 526, 10355, 8886, 10211, 
    10222, 8870, 8868, 10173, 10223, 8887
  ) 
ORDER BY 
  cscart_images_links.position, 
  cscart_images_links.pair_id

Query time 0.00245

Explain
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE cscart_images_links range object_id object_id 81 25 Using index condition; Using filesort
1 SIMPLE cscart_images eq_ref PRIMARY PRIMARY 3 mahm3t_cs443.cscart_images_links.detailed_id 1 Using where
1 SIMPLE cscart_common_descriptions eq_ref PRIMARY PRIMARY 107 mahm3t_cs443.cscart_images.image_id,const,const 1 Using where

Result

pair_id object_id object_type image_id detailed_id type position emo_md5 image_path alt image_x image_y images_image_id
12543 8868 product 0 8458 A 0 VELUX_GGL_005140442896953b5e2a9c2194.jpg 1024 768 8458
12544 8868 product 0 8459 A 0 VELUX_GGL_003140442896953b5e2a9c9c14.jpg 1024 728 8459
12545 8868 product 0 8460 A 0 VELUX_GGL_002140442896953b5e2a9d1d73.jpg 1024 768 8460
12546 8868 product 0 8461 A 0 VELUX_GGL_003140442896953b5e2a9d8bf4.jpg 1024 728 8461
12547 8868 product 0 8462 A 0 VELUX_GGL_004140442896953b5e2a9e0370.jpg 1024 768 8462
12548 8868 product 0 8463 A 0 VELUX_GGL140442896953b5e2a9e99fc.jpg 1024 768 8463
12555 8868 product 0 8471 A 0 VELUX_GGL_006140442918453b5e3807b5c1.jpg 1024 768 8471
12636 8869 product 0 8566 A 0 115230-01-XXL_c24r-q8.jpg 1280 960 8566
12637 8869 product 0 8567 A 0 velux_ggl_3073_04140519158253c1859e6f61b.jpg 550 367 8567
12670 8887 product 0 8606 A 0 VELUX_GGU_Integra_03140520118353c1ab1f43c20.jpg 600 400 8606
12671 8887 product 0 8607 A 0 VELUX_GGU_001140520118353c1ab1f4fa80.jpg 932 768 8607
26125 8869 product 0 21700 A 0 121597-01-L_61ag-0e.jpg 1280 960 21700
27529 10173 product 0 23104 A 0 okno-poliuretanowe-glu-velux-dolne-otwieranie.jpg 1280 853 23104
27530 10173 product 0 23105 A 0 Velux-GLU-0061-przekroj-e1618914908423.jpg 681 584 23105
27738 10211 product 0 23313 A 0 VELUX_GPU_005140448598953b6c16574b1c.jpg 1024 768 23313
27739 10211 product 0 23314 A 0 VELUX_GPU_002140448598953b6c1657d072.jpg 768 1024 23314
27740 10211 product 0 23315 A 0 VELUX_GPU_006140448598953b6c1658576f.jpg 1024 682 23315
27741 10211 product 0 23316 A 0 VELUX_GPU_003140448598953b6c1658e024.jpg 1024 768 23316
27742 10211 product 0 23317 A 0 VELUX_GPU_001140448598953b6c16596a24.jpg 1024 768 23317
28074 10222 product 0 23649 A 0 Roto-Designo-Drewniane_gqks-jj.jpg 603 514 23649
28081 10222 product 0 23656 A 0 roto_d79h_002.jpg 700 549 23656
30770 10173 product 0 26348 A 0 VELUX-GLU-okno-0064b-wnetrze_v2sn-dh.jpg 1280 960 26348
30932 526 product 0 26510 A 0 rooflite_pvc_trio_.jpg 900 900 26510
31289 10355 product 0 26867 A 0 fakro_pakiet_u4.png 210 255 26867
31335 10223 product 0 26913 A 0 Okno-Roto-Designo-R7-WD.jpg 512 491 26913
31560 10353 product 0 27138 A 0 FTU-V-packshot-01_1_14_54x2-58.jpg 1000 1000 27138
28260 10353 product 0 23835 A 1 fakro_pakiet_u4.png 210 255 23835
32511 526 product 0 28089 A 1 okno__OKNA_PLASTIKOWE_PCV_dachowe_połaciowe_TRIO_PVC_TRZYSZYBOWE_78x118_78x140_roofLITE__z_66x118_3_SZYBY_7.jpg 2000 2000 28089
12647 8886 product 0 8579 A 2 VELUX_GGU_Integra_03140520009253c1a6dce8aad.jpg 600 400 8579
12659 8870 product 0 8593 A 2 velux_ggl_integra_03140520083053c1a9be09c9c.jpg 600 400 8593
28075 10222 product 0 23650 A 2 roto_d79h_003.jpg 372 515 23650
31270 10353 product 0 26848 A 2 okno-dachowe-ftp-v-secure-3.jpg 848 1199 26848
32512 526 product 0 28090 A 2 okno__OKNA_PLASTIKOWE_PCV_dachowe_połaciowe_TRIO_PVC_TRZYSZYBOWE_78x118_78x140_roofLITE__z_66x118_3_SZYBY_21.jpg 497 637 28090
12642 8886 product 0 8573 A 3 VELUX_GGU_001140519960353c1a4f398241.jpg 932 768 8573
12660 8870 product 0 8594 A 3 VELUX_GGL140520083053c1a9be12ed4.jpg 1024 768 8594
28076 10222 product 0 23651 A 3 roto_d79h_004.jpg 710 764 23651
31271 10353 product 0 26849 A 3 FTP-V-10-e1540555573385.jpg 800 530 26849
31310 526 product 0 26888 A 3 okno-dachowe-rooflite-trio-pvc.png 1749 2000 26888
31374 10173 product 0 26952 A 3 zdjecie-okno-0064b-GLU-VELUX_avyb-lc.jpg 1280 960 26952
31375 10173 product 0 26953 A 3 GLU-0064b_0c3j-d2.jpg 1280 960 26953
31376 10173 product 0 26954 A 3 Nawiewnik-w-oknie-dachowym-Velux-z-dolnym-otwieraniem-scaled_dr5f-pz.jpg 2560 1920 26954
31377 10173 product 0 26955 A 3 otwieranie-okna-dolna-klamka-velux_cam7-ts.jpg 1280 905 26955
31378 10173 product 0 26956 A 3 Klamka-okna-GLU-scaled_jovb-c8.jpg 2560 1920 26956
12643 8886 product 0 8574 A 4 VELUX_GGU_003140519960353c1a4f3a15d4.jpg 1024 768 8574
12661 8870 product 0 8595 A 4 VELUX_GGL_007140520083053c1a9be1bf73.jpg 1024 844 8595
26118 8886 product 0 21693 A 4 115230-01-XXL_lvyi-1z.jpg 1280 960 21693
31272 10353 product 0 26850 A 4 FTP-V-09-e1540555610552.jpg 800 533 26850
31312 526 product 0 26890 A 4 okno-dachowe-rooflite-trio-pvc-6.png 550 500 26890
12657 8870 product 0 8591 A 5 velux_ggl_3073_04140520082953c1a9bdeaf67.jpg 550 367 8591
31273 10353 product 0 26851 A 5 FTP-V-06-e1540555681916.jpg 800 1200 26851
31311 526 product 0 26889 A 5 okno-dachowe-rooflite-trio-pvc-2.png 550 500 26889
12662 8870 product 0 8596 A 6 VELUX_GGL_006140520083053c1a9be25dc7.jpg 1024 768 8596
29381 526 product 0 24958 A 6 trio_103.png 550 500 24958
31274 10353 product 0 26852 A 6 fakro_ftpv_061385510326529535b6b7be0.jpg 600 424 26852
29380 526 product 0 24957 A 7 trio_102.png 550 500 24957
31561 10353 product 0 27139 A 7 FTU-V-U5-03_1_5_vkni-ve.jpg 1000 1000 27139
31313 526 product 0 26891 A 8 okno-dachowe-rooflite-trio-pvc-5.png 550 500 26891
31562 10353 product 0 27140 A 8 okno-dachowe-fakro-ftu-v.jpg 848 1272 27140
29370 526 product 0 24947 A 9 TRIO_PVC_2.png 1920 1080 24947
31563 10353 product 0 27141 A 9 FTU-V-05_1_1_sc2o-hu.jpg 1000 1000 27141
29369 526 product 0 24946 A 10 atr_trio_002.jpg 1152 648 24946
31564 10353 product 0 27142 A 10 okno-dachowe-fakro-ftu-v-10.jpg 848 565 27142
31565 10353 product 0 27143 A 11 okno-dachowe-fakro-ftu-v-8.jpg 848 565 27143
31566 10353 product 0 27144 A 12 okno-dachowe-fakro-ftu-v-7.jpg 848 575 27144
31567 10353 product 0 27145 A 13 okno-dachowe-fakro-ftu-v-6.jpg 848 565 27145
31568 10353 product 0 27146 A 14 okno-dachowe-fakro-ftu-v-5.jpg 848 565 27146
31569 10353 product 0 27147 A 15 okno-dachowe-fakro-ftu-v-4.jpg 848 1272 27147
31570 10353 product 0 27148 A 16 okno-dachowe-fakro-ftu-v-3.jpg 848 565 27148
31571 10353 product 0 27149 A 17 okno-dachowe-fakro-ftu-v-2.jpg 848 565 27149
31572 10353 product 0 27150 A 18 okno-dachowe-fakro-ftu-v-1.jpg 848 1272 27150
31573 10353 product 0 27151 A 19 FTU-V-02_y56y-zh.jpg 1514 1563 27151