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 = 'en' 
WHERE 
  cscart_images_links.object_type = 'product' 
  AND cscart_images_links.type = 'A' 
  AND cscart_images_links.object_id IN (
    65451, 65433, 65472, 65811, 65448, 65434, 
    65806, 65800, 65801, 65818, 65807, 
    65452
  ) 
ORDER BY 
  cscart_images_links.position, 
  cscart_images_links.pair_id

Query time 0.00136

JSON explain

{
  "query_block": {
    "select_id": 1,
    "read_sorted_file": {
      "filesort": {
        "sort_key": "cscart_images_links.position, cscart_images_links.pair_id",
        "table": {
          "table_name": "cscart_images_links",
          "access_type": "range",
          "possible_keys": ["object_id"],
          "key": "object_id",
          "key_length": "81",
          "used_key_parts": ["object_id", "object_type", "type"],
          "rows": 76,
          "filtered": 100,
          "index_condition": "cscart_images_links.object_type = 'product' and cscart_images_links.`type` = 'A' and cscart_images_links.object_id in (65451,65433,65472,65811,65448,65434,65806,65800,65801,65818,65807,65452)"
        }
      }
    },
    "table": {
      "table_name": "cscart_images",
      "access_type": "eq_ref",
      "possible_keys": ["PRIMARY"],
      "key": "PRIMARY",
      "key_length": "3",
      "used_key_parts": ["image_id"],
      "ref": ["cscart_migrate.cscart_images_links.detailed_id"],
      "rows": 1,
      "filtered": 100,
      "attached_condition": "trigcond(cscart_images_links.detailed_id = cscart_images.image_id)"
    },
    "table": {
      "table_name": "cscart_common_descriptions",
      "access_type": "eq_ref",
      "possible_keys": ["PRIMARY"],
      "key": "PRIMARY",
      "key_length": "107",
      "used_key_parts": ["object_id", "lang_code", "object_holder"],
      "ref": ["cscart_migrate.cscart_images.image_id", "const", "const"],
      "rows": 1,
      "filtered": 100,
      "attached_condition": "trigcond(cscart_common_descriptions.object_id = cscart_images.image_id and cscart_common_descriptions.object_holder = 'images' and cscart_common_descriptions.lang_code = 'en' and trigcond(cscart_images.image_id is not null))"
    }
  }
}

Result

pair_id object_id object_type image_id detailed_id type position image_type show_gallery gallery_category_id image_path alt image_x image_y images_image_id
60222 65433 product 0 72455 A 0 D 0 0 Bomber-flush-mount-LED-15in-480-Blush-Pink-200-white.jpg 15" Bomber LED, 480-Blush Pink, Mounting in 200-White 1000 1000 72455
60350 65472 product 0 72583 A 0 D 0 0 Laramie-LED-flush-mount-16in-100-black-wc.jpg 16" Laramie LED, 100-Black, Wire Cage, 975-Galvanized 1000 1000 72583
63565 65434 product 0 75798 A 0 D 0 0 dominion-flush-mount-LED-16in-997-raw-brass-200-white.jpg 16" Dominion LED, 997-Natural Raw Brass, Mounting in 200-White 1000 1000 75798
63567 65448 product 0 75800 A 0 D 0 0 dominion-flush-mount-12in-370-mint-200-white-CGG-FST.jpg 12" Dominion Nautical LED, 370-Mint, CGG-Standard Cast Guard, FST-Frosted Glass, Mounting in 200-White 1000 1000 75800
64014 65451 product 0 76247 A 0 D 0 0 marathon-flush-mount-12in-975-galvanized-CGG-FST-400-Barn-Red.jpg 12" Marathon Nautical LED, 975-Galvanized, CGG-Standard Cast Guard, 400-Barn Red, FST-Frosted Glass 1000 1000 76247
64015 65451 product 0 76248 A 0 D 0 0 marathon-flush-mount-16in-380-chartreuse-100-black-WGG-RIB.jpg 16" Marathon Nautical, 380-Chartreuse, WGG-Wire Guard, 100-Black, RIB-Ribbed Glass, Mounting in 100-Black 1000 1000 76248
64016 65451 product 0 76249 A 0 D 0 0 marathon-flush-mount-16in-705-Navy-CGG.jpg 16" Marathon Nautical LED, 705-Navy, CGG-Standard Cast Guard, FST-Frosted Glass 1000 1000 76249
64183 65452 product 0 76416 A 0 D 0 0 aero-flush-mount-14in-300-dark-green-CGG-FST.jpg 14" Aero Nautical LED, 300-Dark Green, CGG-Standard Cast Guard, FST-Frosted Glass 1000 1000 76416
64184 65452 product 0 76417 A 0 D 0 0 aero-flush-mount-16in-975-galvanized-CGG-RIB.jpg 16" Aero Nautical LED, 975-Galvanized, CGG-Standard Cast Guard, RIB-Ribbed Glass 1000 1000 76417
64185 65452 product 0 76418 A 0 D 0 0 aero-flush-mount-12-400-barn-red-WGG-RIB.jpg 12" Aero Nautical LED, 400-Barn Red, WGG-Wire Guard, RIB-Ribbed Glass 1000 1000 76418
69143 65800 product 0 81376 A 0 D 0 0 Avalon-42in-studio-cable-100-black-CSBG.jpg 42" Avalon LED, 100-Black, CSBG-Black & Gold Cloth Cord 1000 1000 81376
69144 65800 product 0 81377 A 0 D 0 0 Avalon-42in-Studio-Cable-200-white-full-build.jpg 42" Avalon LED, 200-White, SWH-Standard White Cord 1000 1000 81377
69145 65800 product 0 81378 A 0 D 0 0 Avalon-42in-Studio-Cable-307-emerald-CSBB.jpg 42" Avalon LED, 307-Emerald Green, CSBB-Black & Brown Cloth Cord 1000 1000 81378
69146 65800 product 0 81379 A 0 D 0 0 Avalon-42in-Studio-Cable-400-barn-red-CRZ.jpg 42" Avalon LED, 400-Barn Red, CRZ-Red Chevron Cord 1000 1000 81379
69147 65800 product 0 81380 A 0 D 0 0 Avalon-42in-Studio-Cable-975-galvanized-CSBW_6p1s-g8.jpg 42" Avalon LED, 975-Galvanized, CSBW-Black & White Cloth Cord 1000 1000 81380
69148 65800 product 0 81381 A 0 D 0 0 Avalon-42in-Studio-Cable-705-navy-blue-CSgW.jpg 42" Avalon LED, 705-Navy Blue, CSGW-Gold & White Cloth Cord 1000 1000 81381
69149 65800 product 0 81382 A 0 D 0 0 Avalon-42in-Studio-Cable-700-royal-blue-CSUW.jpg 42" Avalon LED, 700-Royal Blue, CSUW-Blue & White Cloth Cord 1000 1000 81382
69150 65800 product 0 81383 A 0 C 0 0 living-room-6469856-residential-interior-avalon-oversized-studio-pendant-light-42in-975-galvanized-alt.jpg 42" Avalon, 975-Galvanized, CSBB-Black & Brown Cloth Cord 1500 1636 81383
69155 65801 product 0 81388 A 0 D 0 0 Avalon-42in-chain-400-barn-red-CSR_0qbr-a2.jpg 42" Avalon LED, 400-Barn Red, CSR-Red Cloth Cord 1000 1000 81388
69156 65801 product 0 81389 A 0 D 0 0 Avalon-42in-chain-200-white-CSW-full-build.jpg 42" Avalon LED, 200-White, CSW-White Cloth Cord 1000 1000 81389
69157 65801 product 0 81390 A 0 D 0 0 Avalon-42in-chain-307-emerald-green-CSBB.jpg 42" Avalon LED, 307-Emerald Green, CSBB-Black & Brown Cloth Cord 1000 1000 81390
69158 65801 product 0 81391 A 0 D 0 0 Avalon-42in-chain-500-buttery-yellow-975-galvanized-CSBW.jpg 42" Avalon LED, 500-Butter Yellow, Mounting in 975-Galvanized, CSBW-Black & White Cloth Cord 1000 1000 81391
69159 65801 product 0 81392 A 0 D 0 0 Avalon-42in-chain-490-magents-100-black-CSBP.jpg 42" Avalon LED, 490-Magenta, Mounting in 100-Black, CSBP-Black & Pink Cloth Cord 1000 1000 81392
69160 65801 product 0 81393 A 0 D 0 0 Avalon-42in-Stem-700-royal-blue-CSUW.jpg 42" Avalon LED, 700-Royal Blue, CSUW-Blue & White Cloth Cord 1000 1000 81393
69161 65801 product 0 81394 A 0 D 0 0 Avalon-42in-chain-975-galvanized-CSB.jpg 42" Avalon LED, 975-Galvanized, CSB-Black Cloth Cord 1000 1000 81394
69289 65806 product 0 81522 A 0 D 0 0 Laramie-studio-pendant-30in-100-black-red-cloth-cord.jpg 30" Laramie LED, 100-Black, CSR-Red Cloth Cord 1000 1000 81522
69311 65811 product 0 81544 A 0 D 0 0 Laramie-chain-pendant-30in-975-galvanized-red-and-white-cloth-cord-heavy-duty-guard-ribbed-glass.jpg 30" Laramie Nautical LED, 975-Galvanized, TGG-Heavy Duty Cast Guard, RIB-Ribbed Glass, CSRW-Red & White Cloth Cord 1000 1000 81544
69313 65807 product 0 81546 A 0 D 0 0 Laramie-chain-pendant-30in-100-black-black-cloth-cord-400-barn-red.jpg 30" Laramie LED, 100-Black, Mounting in 400-Barn Red, CSB-Black Cloth Cord 1000 1000 81546
69388 65818 product 0 81621 A 0 D 0 0 Chestnut-chain-pendant-30in-100-black-black-cloth-cord-400-barn-red.jpg 30" Chestnut LED, 100-Black, Mounting in 400-Barn Red, CSB-Black Cloth Cord 1000 1000 81621
60230 65434 product 0 72463 A 1 D 0 0 dominion-flush-mount-LED-12in-750-cobalt.jpg 12" Dominion LED, 750-Porcelain Cobalt Blue 1000 1000 72463
60349 65472 product 0 72582 A 1 D 0 0 laramie-LED-flush-mount-12in-200-white.jpg 12" Laramie LED, 200-White 1000 1000 72582
63552 65433 product 0 75785 A 1 D 0 0 Bomber-flush-mount-LED-17in-705-navy-975-galvanized.jpg 17" Bomber LED, 705-Navy, Mounting in 975-Galvanized 1000 1000 75785
63571 65448 product 0 75804 A 1 D 0 0 dominion-flush-mount.jpg 16" Dominion Nautical, 705-Navy, CGG-Standard Cast Guard, RIB-Ribbed Glass 1000 1000 75804
69294 65806 product 0 81527 A 1 D 0 0 Laramie-studio-pendant-30in-full-build-311-jadite-black-and-white-cloth-cord_ezna-j1.jpg 30" Laramie LED, 311-Jadite, CSBW-Black & White Cloth Cord 1000 1000 81527
69307 65811 product 0 81540 A 1 D 0 0 Laramie-chain-pendant-30in-311-jadite-brown-and-black-chevron-cord-standard-guard-ribbed-glass.jpg 30" Laramie Nautical LED, 311-Jadite, CGG-Standard Cast Guard, RIB-Ribbed Glass, CSBB-Black & Brown Cloth Cord 1000 1000 81540
69316 65807 product 0 81549 A 1 D 0 0 Laramie-chain-pendant-30in-311-jadite-brown-and-black-chevron-cord_2nod-w6.jpg 30" Laramie LED, 311-Jadite, CSBB-Black & Brown Cloth Cord 1000 1000 81549
69391 65818 product 0 81624 A 1 D 0 0 Chestnut-chain-pendant-30in-311-jadite-brown-and-black-chevron-cord.jpg 30" Chestnut LED, 311-Jadite, CSBB-Black & Brown Cloth Cord 1000 1000 81624
60223 65433 product 0 72456 A 2 D 0 0 Bomber-flush-mount-LED-13in-998-weathered-brass-100-black.jpg 13" Bomber LED, 998-Natural Weathered Brass, Mounting in 100-Black 1000 1000 72456
60352 65472 product 0 72585 A 2 D 0 0 Laramie-LED-flush-mount-16in-975-galvanized.jpg 16" Laramie LED, 975-Galvanized 1000 1000 72585
63564 65434 product 0 75797 A 2 D 0 0 dominion-flush-mount-LED-16in-975-galvanized-WC.jpg 16" Dominion LED, 975-Galvanized, Wire Cage 1000 1000 75797
63569 65448 product 0 75802 A 2 D 0 0 dominion-flush-mount-14in-400-barn-red-TGG-FST.jpg 14" Dominion Nautical LED, 400-Barn Red, TGG-Heavy Duty Cast Guard, FST-Frosted Glass 1000 1000 75802
69290 65806 product 0 81523 A 2 D 0 0 Laramie-studio-pendant-30in-200-white-black-cloth-cord.jpg 30" Laramie LED, 200-White, CSB-Black Cloth Cord 1000 1000 81523
69305 65811 product 0 81538 A 2 D 0 0 Laramie-chain-pendant-30in-100-black-black-cloth-cord-400-barn-red-standard-guard-ribbed-glass_l63y-nd.jpg 30" Laramie Nautical LED, 100-Black, CGG-Standard Cast Guard, 400-Barn Red, RIB-Ribbed Glass, Mounting in 400-Barn Red, CSB-Black Cloth Cord 1000 1000 81538
69314 65807 product 0 81547 A 2 D 0 0 Laramie-chain-pendant-30in-200-white-black-cloth-cord_epgd-1k.jpg 30" Laramie LED, 200-White, Mounting in 100-Black, CSB-Black Cloth Cord 1000 1000 81547
69389 65818 product 0 81622 A 2 D 0 0 Chestnut-chain-pendant-30in-200-white-black-cloth-cord_wcyh-k7.jpg 30" Chestnut LED, 200-White, Mounting in 100-Black, CSB-Black Cloth Cord 1000 1000 81622
60224 65433 product 0 72457 A 3 D 0 0 Bomber-flush-mount-LED-15in-250-White.jpg 15" Bomber LED, 250-Porcelain White 1000 1000 72457
60227 65434 product 0 72460 A 3 D 0 0 dominion-flush-mount-LED-16in-200-white.jpg 16" Dominion LED, 200-White 1000 1000 72460
63570 65448 product 0 75803 A 3 D 0 0 dominion-flush-mount-16in-200-white-CGG-100-black-FST_tykl-9y.jpg 16" Dominion Nautical LED, 200-White, CGG-Standard Cast Guard, 100-Black, FST-Frosted Glass, Mounting in 100-Black 1000 1000 75803
69291 65806 product 0 81524 A 3 D 0 0 Laramie-studio-pendant-30in-300-dark-green-black-brown-chevron-cord_m19q-8e.jpg 30" Laramie LED, 300-Dark Green, CSBB-Black & Brown Cloth Cord 1000 1000 81524
69308 65811 product 0 81541 A 3 D 0 0 Laramie-chain-pendant-30in-390-teal-white-cloth-cord-200-white-standard-guard-ribbed-glass_h5d4-m8.jpg 30" Laramie Nautical LED, 390-Teal, CGG-Standard Cast Guard, 200-White, RIB-Ribbed Glass, CSW-White Cloth Cord 1000 1000 81541
69315 65807 product 0 81548 A 3 D 0 0 Laramie-chain-pendant-30in-300-dark-green-black-and-white-cloth-cord-100-black_22zj-1x.jpg 30" Laramie LED, 300-Dark Green, Mounting in 100-Black, CSBW-Black & White Cloth Cord 1000 1000 81548
69390 65818 product 0 81623 A 3 D 0 0 Chestnut-chain-pendant-30in-300-dark-green-black-and-white-cloth-cord-100-black_c2ce-ve.jpg 30" Chestnut LED, 300-Dark Green, Mounting in 100-Black, CSBW-Black & White Cloth Cord 1000 1000 81623
60228 65434 product 0 72461 A 4 D 0 0 dominion-flush-mount-LED-12in-400-barn-red.jpg 12" Dominion LED, 400-Barn Red 1000 1000 72461
63553 65433 product 0 75786 A 4 D 0 0 Bomber-flush-mount-LED-17in-975-galvanized.jpg 17" Bomber LED, 975-Galvanized 1000 1000 75786
63568 65448 product 0 75801 A 4 D 0 0 dominion-flush-mount-12in-480-CGG-975-galvanized-RIB.jpg 12" Dominion Nautical LED, 480-Blush Pink, CGG-Standard Cast Guard, 975-Galvanized, RIB-Ribbed Glass, Mounting in 975-Galvanized 1000 1000 75801
69292 65806 product 0 81525 A 4 D 0 0 Laramie-studio-pendant-30in-500-buttery-yellow-black-white-cloth-cord_hgqh-8f.jpg 30" Laramie LED, 500-Buttery Yellow, CSBG-Black & Gold Cloth Cord 1000 1000 81525
69306 65811 product 0 81539 A 4 D 0 0 Laramie-chain-pendant-30in-300-dark-green-black-and-white-cloth-cord-100-black-standard-guard-ribbed-glass.jpg 30" Laramie Nautical LED, 300-Dark Green, CGG-Standard Cast Guard, 100-Black, RIB-Ribbed Glass, Mounting in 100-Black, CSBW-Black & White Cloth Cord 1000 1000 81539
69318 65807 product 0 81551 A 4 D 0 0 Laramie-chain-pendant-30in-500-buttery-yellow-black-and-gold-cloth-cord-975-galvanized_432p-e0.jpg 30" Laramie LED, 500-Buttery Yellow, Mounting in 975-Galvanized, CSBG-Black & Gold Cloth Cord 1000 1000 81551
69393 65818 product 0 81626 A 4 D 0 0 Chestnut-chain-pendant-30in-500-buttery-yellow-black-and-gold-cloth-cord-975-galvanized.jpg 30" Chestnut LED, 500-Buttery Yellow, Mounting in 975-Galvanized, CSBG-Black & Gold Cloth Cord 1000 1000 81626
60221 65433 product 0 72454 A 5 D 0 0 Bomber-flush-mount-LED-11in-765-delphite-CGG.jpg 11" Bomber LED, 765-Porcelain Delphite 1000 1000 72454
63562 65434 product 0 75795 A 5 D 0 0 dominion-flush-mount-LED-16in-800-industrial-grey.jpg 16" Dominion LED, 800-Industrial Grey 1000 1000 75795
69288 65806 product 0 81521 A 5 D 0 0 Laramie-studio-pendant-30in-390-teal-white-cloth-cord_tn50-s9.jpg 30" Laramie LED, 390-Teal, CSW-White Cloth Cord 1000 1000 81521
69309 65811 product 0 81542 A 5 D 0 0 Laramie-chain-pendant-30in-500-buttery-yellow-black-and-gold-cloth-cord-975-galvanized-standard-guard-ribbed-glass.jpg 30" Laramie Nautical LED, 500-Buttery Yellow, CGG-Standard Cast Guard, 975-Galvanized, RIB-Ribbed Glass, Mounting in 975-Galvanized, CSBG-Black & Gold Cloth Cord 1000 1000 81542
69317 65807 product 0 81550 A 5 D 0 0 Laramie-chain-pendant-30in-390-teal-white-cloth-cord_g9sk-sm.jpg 30" Laramie LED, 390-Teal, CSW-White Cloth Cord 1000 1000 81550
69392 65818 product 0 81625 A 5 D 0 0 Chestnut-chain-pendant-30in-390-teal-white-cloth-cord_bgmc-42.jpg 30" Chestnut LED, 390-Teal, CSW-White Cloth Cord 1000 1000 81625
60225 65433 product 0 72458 A 6 D 0 0 Bomber-flush-mount-LED-17in-570-sunflower-100-black.jpg 17" Bomber LED, 570-Sunflower, Mounting in 100-Black 1000 1000 72458
60231 65434 product 0 72464 A 6 D 0 0 dominion-flush-mount-LED-14in-100-black.jpg 14" Dominion LED, 100-Black 1000 1000 72464
69293 65806 product 0 81526 A 6 D 0 0 Laramie-studio-pendant-30in-705-navy-blue-and-white-cloth-cord_mtiv-mc.jpg 30" Laramie LED, 705-Navy, CSUW-Blue & White Cloth Cord 1000 1000 81526
69310 65811 product 0 81543 A 6 D 0 0 Laramie-chain-pendant-30in-705-navy-gold-and-white-cloth-cord-heavy-duty-guard-ribbed-glass_kny3-8b.jpg 30" Laramie Nautical LED, 705-Navy, CGG-Standard Cast Guard, RIB-Ribbed Glass, CSGW-Gold & White Cloth Cord 1000 1000 81543
69320 65807 product 0 81553 A 6 D 0 0 Laramie-chain-pendant-30in-975-galvanized-red-and-white-cloth-cord_lvhz-5y.jpg 30" Laramie LED, 975-Galvanized, CSRW-Red & White Cloth Cord 1000 1000 81553
69395 65818 product 0 81628 A 6 D 0 0 Chestnut-chain-pendant-30in-975-galvanized-red-and-white-cloth-cord_3r27-6s.jpg 30" Chestnut LED, 975-Galvanized, CRZ-Red Chevron Cord 1000 1000 81628
60232 65434 product 0 72465 A 7 D 0 0 dominion-flush-mount-LED-14in-370-mint.jpg 14" Dominion LED, 370-Mint 1000 1000 72465
69319 65807 product 0 81552 A 7 D 0 0 Laramie-chain-pendant-30in-705-navy-gold-and-white-cloth-cord.jpg 30" Laramie LED, 705-Navy, CSGW-Gold & White Cloth Cord 1000 1000 81552
69394 65818 product 0 81627 A 7 D 0 0 Chestnut-chain-pendant-30in-705-navy-gold-and-white-cloth-cord_3n3q-pv.jpg 30" Chestnut LED, 705-Navy, CSGW-Gold & White Cloth Cord 1000 1000 81627
63563 65434 product 0 75796 A 8 D 0 0 dominion-flush-mount-LED-16in-950-metallic-chrome-975-galvanized.jpg 16" Dominion LED, 950-Metallic Chrome, Mounting in 975-Galvanized 1000 1000 75796
60229 65434 product 0 72462 A 9 D 0 0 dominion-flush-mount-LED-14in-500-buttery-yellow.jpg 14" Dominion LED, 500-Buttery Yellow 1000 1000 72462