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 (
    64923, 62654, 62387, 64927, 64933, 63225, 
    62657, 64980, 62395, 63828, 62355, 
    63266
  ) 
ORDER BY 
  cscart_images_links.position, 
  cscart_images_links.pair_id

Query time 0.00139

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": 72,
          "filtered": 100,
          "index_condition": "cscart_images_links.object_type = 'product' and cscart_images_links.`type` = 'A' and cscart_images_links.object_id in (64923,62654,62387,64927,64933,63225,62657,64980,62395,63828,62355,63266)"
        }
      }
    },
    "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
21492 62387 product 0 33373 A 0 D 0 0 enterprise-3-light-flared-100-black-490-magenta-WGG-FST-CSBP.jpg Enterprise LED 3-Light Chandelier, 100-Black, Flared Shade, 100-Black, WGG-Wire Guard, 490-Magenta, FST-Frosted Glass, CSBP-Black & Pink Cloth Cord 1000 1000 33373
22593 62657 product 0 34491 A 0 D 0 0 outback-chain-12in-997-raw-brass-200-white-RIB-CSGW_i4u1-ap.jpg 12" Outback LED, 997-Natural Raw Brass, Guard in 200-White, RIB-Ribbed Glass, CSGW-Gold & White Cloth Cord, Mounting in 200-White 1000 1000 34491
22650 62654 product 0 34548 A 0 D 0 0 brisbane-chain-12in-490-magenta-100-black-CLR_7lu0-dk.jpg 12" Brisbane LED, 490-Magenta, Guard in 100-Black, CLR-Clear Glass, Mounting in 100-Black, CSBP-Black & Pink Cloth Cord 1000 1000 34548
22651 62654 product 0 34549 A 0 D 0 0 brisbane-chain-full-build-12in-307-emerald-green-CSGW-CLR.jpg 12" Brisbane LED, 307-Emerald Green, CLR-Clear Glass, CSGW-Gold & White Cloth Cord 1000 1000 34549
47537 64923 product 0 59770 A 0 D 0 0 Aero-cord-12in-997-raw-brass-CSGW.jpg 12" Aero LED, 997-Natural Raw Brass, CSGW-Gold & White Cloth Cord 1000 1000 59770
47665 64927 product 0 59898 A 0 D 0 0 Avalon-Cord-10in-975-galvanized-CSBP-Black-Pink.jpg 10" Avalon LED, 975-Galvanized, CSBP-Black & Pink Cloth Cord 1000 1000 59898
47769 64933 product 0 60002 A 0 D 0 0 dominion-stem-LED-12in-100-black.jpg 12" Dominion LED, 100-Black 1000 1000 60002
63979 64980 product 0 76212 A 0 D 0 0 marathon-stem-LED-16in-100-black-975-galvanized-WC.jpg 16" Marathon LED, 100-Black, Wire Cage, 975-Galvanized 1000 1000 76212
64119 62654 product 0 76352 A 0 D 0 0 brisbane-chain-12in-997-raw-brass-100-black-CLR-CSGW.jpg 12" Brisbane LED, 997-Natural Raw Brass, Guard in 100-Black, CLR-Clear Glass, Mounting in 100-Black, CSGW-Gold & White Cloth Cord 1000 1000 76352
64769 63266 product 0 77002 A 0 D 0 0 laramie-cord-12in-200-white-CSW-CGG-FST.jpg 12" Laramie Nautical LED, 200-White, CGG-Standard Cast Guard, FST-Frosted Glass, Standard White Cord 1000 1000 77002
64771 63266 product 0 77004 A 0 D 0 0 Laramie-cord-16in-100-black-CSB-TGG-rIBfull-build.jpg 16" Laramie Nautical LED, 100-Black, TGG-Heavy Duty Cast Guard, RIB-Ribbed Glass, Standard Black Cord 1000 1000 77004
65413 62395 product 0 77646 A 0 D 0 0 Insider-2-Light-Topless-500-buttery-yellow-CGG-RIB-CSUW.jpg Insider LED 2-Light Chandelier, 500-Buttery Yellow, CGG-Standard Cast Guard, RIB-Ribbed Glass, CSUW-Blue & White Cloth Cord 1000 1000 77646
65739 62355 product 0 77972 A 0 D 0 0 blue-collar-cord-490-magenta-CSGW_vdqt-12.jpg 16" Blue Collar LED, 490-Magenta, RIB-Ribbed Glass, CSGW-Gold & White Cloth Cord 1000 1000 77972
65781 63828 product 0 78014 A 0 D 0 0 static-ring-cord-500-buttery-yellow-CSUW.jpg Static Ring LED Pendant, 500-Buttery Yellow, RIB-Ribbed Glass, CSUW-Blue & White Cloth Cord 1000 1000 78014
66433 62654 product 0 78666 A 0 D 0 0 brisbane-chain-16in-200-white-rib-975-galvanized-CSW_figu-82.jpg 16" Brisbane LED, 200-White, RIB-Ribbed Glass, Mounting in 975-Galvanized, CSW-White Cloth Cord 1000 1000 78666
66434 62654 product 0 78667 A 0 D 0 0 brisbane-chain-14in-705-navy-CRD-CLR.jpg 14" Brisbane LED, 705-Navy, CLR-Clear Glass, CSR-Red Cloth Cord 1000 1000 78667
66435 62654 product 0 78668 A 0 D 0 0 brisbane-chain-16in-390-teal-975-galvanized-CSBG-CLR_qeb9-jn.jpg 16" Brisbane LED, 390-Teal, Guard in 975-Galvanized, CLR-Clear Glass, Mounting in 975-Galvanized, CSBG-Black & Gold Cloth Cord 1000 1000 78668
66436 62654 product 0 78669 A 0 D 0 0 brisbane-chain-14in-400-barn-red-CRZ-CLR.jpg 14" Brisbane LED, 400-Barn Red, CLR-Clear Glass, CRZ-Red Chevron Cord 1000 1000 78669
21376 62355 product 0 33257 A 1 D 0 0 blue-collar-cord-100-black-full-build-CSBG.jpg 12" Blue Collar LED, 100-Black, RIB-Ribbed Glass, CSBG-Black & Gold Cloth Cord 1000 1000 33257
21524 62395 product 0 33405 A 1 D 0 0 Insider-2-Light-flared-975-galvanized-TGG-FST-CSRW-.jpg Insider LED 2-Light Chandelier, 975-Galvanized, Flared Shade, TGG-Heavy Duty Cast Guard, FST-Frosted Glass, CSRW-Red & White Cloth Cord 1000 1000 33405
21670 62387 product 0 33551 A 1 D 0 0 enterprise-3-light-flared-500-buttery-yellow-CGG-RIB-CSUW.jpg Enterprise LED 3-Light Chandelier, 500-Buttery Yellow, Flared Shade, CGG-Standard Cast Guard, RIB-Ribbed Glass, CSUW-Blue & White Cloth Cord 1000 1000 33551
22594 62657 product 0 34492 A 1 D 0 0 outback-chain-Full-Build-20in-390-teal-200-white-RIB-CSBW.jpg 20" Outback LED, 390-Teal, Guard in 200-White, RIB-Ribbed Glass, CSBW-Black & White Cloth Cord 1000 1000 34492
50186 64980 product 0 62419 A 1 D 0 0 marathon-stem-LED-12in-975-galvanized.jpg 12" Marathon LED, 975-Galvanized 1000 1000 62419
63111 64933 product 0 75344 A 1 D 0 0 dominion-stem-LED-16in-997-raw-brass-200-white.jpg 16" Dominion LED, 997-Natural Raw Brass, Mounting in 200-White 1000 1000 75344
64140 64923 product 0 76373 A 1 D 0 0 aero-cord-full-build-LED-16in-galvanized-CRZ.jpg 16" Aero LED, 975-Galvanized, CRZ-Red Chevron Cord 1000 1000 76373
64843 63225 product 0 77076 A 1 D 0 0 chestnut-stem-16in-400-barn-red-100-black-heavy-duty-canopy-TGG-FST.jpg 16" Laramie Nautical LED, 400-Barn Red, TGG-Heavy Duty Cast Guard, 100-Black, FST-Frosted Glass, Mounting in 100-Black, Heavy Duty Stem Mount Canopy 1000 1000 77076
65783 63828 product 0 78016 A 1 D 0 0 static-ring-cord-full-build-100-black-fst-CSBW.jpg Static Ring LED Pendant, 100-Black, FST-Frosted Glass, CSBW-Black & White Cloth Cord 1000 1000 78016
27631 63828 product 0 39808 A 2 D 0 0 static-ring-cord-490-magenta-FST-csb_d834-gj.jpg Static Ring LED Pendant, 490-Magenta, FST-Frosted Glass, CSB-Black Cloth Cord 1000 1000 39808
47535 64923 product 0 59768 A 2 D 0 0 Aero-cord-14in-700-royal-blue-CSUW.jpg 14" Aero LED, 700-Royal Blue, CSUW-Blue & White Cloth Cord 1000 1000 59768
47668 64927 product 0 59901 A 2 D 0 0 Avalon-Cord-LED-Full-Build-14in-999-oil-rubbed-copper-CSB.jpg 14" Avalon LED, 999-Natural Oil-Rubbed Copper, CSBB-Black & Brown Cloth Cord 1000 1000 59901
63980 64980 product 0 76213 A 2 D 0 0 marathon-stem-LED-16in-400-barn-red.jpg 16" Marathon LED, 400-Barn Red 1000 1000 76213
64840 63225 product 0 77073 A 2 D 0 0 laramie-stem-16in-975-galvanizedCGG-RIB-400-barn-red.jpg 16" Laramie Nautical LED, 975-Galvanized, CGG-Standard Cast Guard, 400-Barn Red, RIB-Ribbed Glass 1000 1000 77073
65416 62395 product 0 77649 A 2 D 0 0 Insider-2-Light-warehouse-715-delphite-CGG-FST-CSW_6zw4-8j.jpg Insider LED 2-Light Chandelier, 715-Delphite, Warehouse Shade, CGG-Standard Cast Guard, FST-Frosted Glass, CSW-White Cloth Cord 1000 1000 77649
65489 62387 product 0 77722 A 2 D 0 0 enterprise-3-light-warehouse-715-delphite-TGG-RIB-CSBW_7zvz-ku.jpg Enterprise LED 3-Light Chandelier, 715-Delphite, Warehouse Shade, TGG-Heavy Duty Cast Guard, RIB-Ribbed Glass, CSBW-Black & White Cloth Cord 1000 1000 77722
65741 62355 product 0 77974 A 2 D 0 0 blue-collar-cord-975-galvanized-WGG-FST-CSBP.jpg 14" Blue Collar LED, 975-Galvanized, FST-Frosted Glass, CSBP-Black & Pink Cloth Cord 1000 1000 77974
66809 62657 product 0 79042 A 2 D 0 0 outback-chain-16in-400-barn-red-RIB-CRD_8jub-qr.jpg 16" Outback LED, 400-Barn Red, RIB-Ribbed Glass, CSR-Red Cloth Cord 1000 1000 79042
22592 62657 product 0 34490 A 3 D 0 0 outback-chain-12in-975-galvanized-700-royal-FST-CSUW_s7be-ak.jpg 12" Outback LED, 975-Galvanized, Guard in 700-Royal Blue, FST-Frosted Glass, CSUW-Blue & White Cloth Cord 1000 1000 34490
24396 62395 product 0 36377 A 3 D 0 0 Insider-2-Light-topless-400-barn-redCGG-FST-.jpg Insider LED 2-Light Chandelier, 400-Barn Red, CGG-Standard Cast Guard, FST-Frosted Glass, SBK-Standard Black Cord 1000 1000 36377
47538 64923 product 0 59771 A 3 D 0 0 Aero-cord-16in-100-black-CSBG.jpg 16" Aero LED, 100-Black, CSBG-Black & Gold Cloth Cord 1000 1000 59771
47770 64933 product 0 60003 A 3 D 0 0 dominion-stem-LED-12in-975-galvanized.jpg 12" Dominion LED, 975-Galvanized 1000 1000 60003
50187 64980 product 0 62420 A 3 D 0 0 marathon-stem-LED-12in-997-raw-brass.jpg 12" Marathon LED, 997-Natural Raw Brass 1000 1000 62420
62910 64927 product 0 75143 A 3 D 0 0 Avalon-Cord-14in-200-white-CSW.jpg 14" Avalon LED, 200-White, CSW-White Cloth Cord 1000 1000 75143
65486 62387 product 0 77719 A 3 D 0 0 enterprise-3-light-topless-400-barn-red-CGG-RIB-CRZ.jpg Enterprise LED 3-Light Chandelier, 400-Barn Red, Topless Shade, CGG-Standard Cast Guard, RIB-Ribbed Glass, CRZ-Red Chevron Cord 1000 1000 77719
65738 62355 product 0 77971 A 3 D 0 0 blue-collar-cord-400-barn-red-wgg-rib-CSB_j7n7-ti.jpg 16" Blue Collar LED, 400-Barn Red, RIB-Ribbed Glass, CSB-Black Cloth Cord 1000 1000 77971
65782 63828 product 0 78015 A 3 D 0 0 static-ring-cord-975-galvanized-FST-CRZ.jpg Static Ring LED Pendant, 975-Galvanized, FST-Frosted Glass, CRZ-Red Chevron Cord 1000 1000 78015
24397 62395 product 0 36378 A 4 D 0 0 Insider-2-Light-flared-307-emerald-green-CGG-FST-CSBG_g585-y8.jpg Insider LED 2-Light Chandelier, 307-Emerald Green, CGG-Standard Cast Guard, FST-Frosted Glass, CSBG-Black & Gold Cloth Cord 1000 1000 36378
27630 63828 product 0 39807 A 4 D 0 0 static-ring-cord-200-white-CSW_eqm5-44.jpg Static Ring LED Pendant, 200-White, RIB-Ribbed Glass, CSW-White Cloth Cord 1000 1000 39807
47534 64923 product 0 59767 A 4 D 0 0 Aero-cord-14in-400-barn-red-CRD.jpg 14" Aero LED, 400-Barn Red, CSR-Red Cloth Cord 1000 1000 59767
47771 64933 product 0 60004 A 4 D 0 0 dominion-stem-LED-14in-490-magenta.jpg 14" Dominion LED, 490-Magenta, Mounting in 100-Black 1000 1000 60004
62911 64927 product 0 75144 A 4 D 0 0 avalon-cord-16in-997-raw-brass-csbg-black-gold.jpg 16" Avalon LED, 997-Natural Raw Brass, CSBG-Black & Gold Cloth Cord 800 800 75144
63978 64980 product 0 76211 A 4 D 0 0 marathon-stem-LED-14in-705-navy.jpg 14" Marathon LED, 705-Navy 1000 1000 76211
65488 62387 product 0 77721 A 4 D 0 0 enterprise-3-light-warehouse-200-white-CGG-FST-CSW_zjey-hr.jpg Enterprise LED 3-Light Chandelier, 200-White, Warehouse Shade, CGG-Standard Cast Guard, FST-Frosted Glass, CSW-White Cloth Cord 1000 1000 77721
65736 62355 product 0 77969 A 4 D 0 0 blue-collar-cord-300-dark-green-CSW.jpg 12" Blue Collar LED, 300-Dark Green, RIB-Ribbed Glass, CSW-White Cloth Cord 1000 1000 77969
66810 62657 product 0 79043 A 4 D 0 0 outback-chain-20in-307-emerald-green-FST-CSGW_ql6e-gy.jpg 20" Outback LED, 307-Emerald Green, FST-Frosted Glass, CSGW-Gold & White Cloth Cord 1000 1000 79043
47667 64927 product 0 59900 A 5 D 0 0 Avalon-Cord-10in-800-industrial-grey-CMG-grey.jpg 10" Avalon LED, 800-Industrial Grey, CMG-Grey Cloth Cord 1000 1000 59900
63108 64933 product 0 75341 A 5 D 0 0 dominion-stem-LED-14in-705-navy-WC.jpg 14" Dominion LED, 705-Navy, Wire Cage, Mounting in 975-Galvanized 1000 1000 75341
64139 64923 product 0 76372 A 5 D 0 0 Aero-cord-16in-200-white-CSW.jpg 16" Aero LED, 200-White, CSW-White Cloth Cord 1000 1000 76372
65415 62395 product 0 77648 A 5 D 0 0 Insider-2-Light-warehouse-100-black-200-white-WGG-CLR-TBW_6iog-6c.jpg Insider LED 2-Light Chandelier, 200-White, WGG-Wire Guard, 100-Black, CLR-Clear Glass, TBW-Black & White Cotton Twist Cord 1000 1000 77648
65487 62387 product 0 77720 A 5 D 0 0 enterprise-3-light-topless-705-navy-CGG-CLR-CSGW.jpg Enterprise LED 3-Light Chandelier, 705-Navy, Topless Shade, CGG-Standard Cast Guard, CLR-Clear Glass, CSGW-Gold & White Cloth Cord 1000 1000 77720
65740 62355 product 0 77973 A 5 D 0 0 blue-collar-cord-810-charcoal-12in-WGG-RIB-CSBW_sjb4-jk.jpg 12" Blue Collar LED, 810-Graphite, RIB-Ribbed Glass, CSBW-Black & White Cloth Cord 1000 1000 77973
66812 62657 product 0 79045 A 5 D 0 0 outback-chain-14in-200-white-RIB-CSW.jpg 14" Outback LED, 200-White, RIB-Ribbed Glass, CSW-White Cloth Cord 1000 1000 79045
47533 64923 product 0 59766 A 6 D 0 0 Aero-cord-12in-390-teal-CMG.jpg 12" Aero LED, 390-Teal, CMG-Grey Cloth Cord 1000 1000 59766
63981 64980 product 0 76214 A 6 D 0 0 marathon-stem-LED-16in-490-magenta-975-galvanized-HSC.jpg 16" Marathon LED, 490-Magenta, Mounting in 975-Galvanized, Hang Straight Canopy 1000 1000 76214
65414 62395 product 0 77647 A 6 D 0 0 Insider-2-Light-topless-705-navy-CGG-CLR-CSGW.jpg Insider LED 2-Light Chandelier, 705-Navy, CGG-Standard Cast Guard, CLR-Clear Glass, CSGW-Gold & White Cloth Cord 1000 1000 77647
65737 62355 product 0 77970 A 6 D 0 0 blue-collar-cord-307-emerald-WGG-RIB-CSBB_02q2-59.jpg 16" Blue Collar LED, 307-Emerald Green, RIB-Ribbed Glass, CSBB-Black & Brown Cloth Cord 1000 1000 77970
66811 62657 product 0 79044 A 6 D 0 0 outback-chain-16in-705-navy-FST-CRZ_bb8k-c1.jpg 16" Outback LED, 705-Navy, FST-Frosted Glass, CRZ-Red Chevron Cord 1000 1000 79044
68220 62657 product 0 80453 A 6 C 0 0 IMG_3309-commercial-interior-lighting-on-kitchen-Outback-LED-Chain-Hung-14in-700-Royal-Blue-CSB-Black-Cloth-Chain-Guard-975-Galvanized-Clear-Glass.jpg 14" Outback LED Chain Hung, 700-Royal Blue, Cotton Black Cord & Chain, Guard, 975-Galvanized, Clear Glass | Photo Courtesy of Linda Ashley Interiors 2939 3919 80453
47539 64923 product 0 59772 A 7 D 0 0 Aero-cord-14in-500-buttery-yellow-CSBW.jpg 14" Aero LED, 500-Buttery Yellow, CSBW-Black & White Cloth Cord 1000 1000 59772
63109 64933 product 0 75342 A 7 D 0 0 dominion-stem-LED-16in-200-white.jpg 16" Dominion LED, 200-White 1000 1000 75342
47536 64923 product 0 59769 A 8 C 0 0 ivanhoe_aero_12in_white.jpg 12" Aero LED, 200-White 600 393 59769
63110 64933 product 0 75343 A 8 D 0 0 dominion-stem-LED-16in-307-emeral-green.jpg 16" Dominion LED, 307-Emerald Green 1000 1000 75343
67210 64923 product 0 79443 A 8 C 0 0 IMG-0971-residential-interior-kitchen-island-lighting-Aero-LED-Pendant-12in-200-White-SWH-Flat-Lens.jpg 12" Aero LED Pendant, 200-White, Standard White Cord, Flat Lens | LDD Interiors 3285 2957 79443