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 (
    62259, 61340, 61337, 62252, 61336, 62253, 
    62254, 62260, 64941, 62258, 64942, 
    64943
  ) 
ORDER BY 
  cscart_images_links.position, 
  cscart_images_links.pair_id

Query time 0.00160

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": 71,
          "filtered": 100,
          "index_condition": "cscart_images_links.object_type = 'product' and cscart_images_links.`type` = 'A' and cscart_images_links.object_id in (62259,61340,61337,62252,61336,62253,62254,62260,64941,62258,64942,64943)"
        }
      }
    },
    "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
15670 61340 product 0 27140 A 0 C 0 0 1.jpg 1/2" Heavy Duty Backing Plate 400 400 27140
15671 61340 product 0 27141 A 0 C 0 0 3_4_inch_stem_mount_backing_plate_square.jpg 3/4" Heavy Duty Backing Plate 400 400 27141
20588 61340 product 0 32415 A 0 D 0 0 Heavy_Duty_Stem_Mount_Canopy_-_Barn_Light_Electric.png Heavy Duty Stem Mount Canopy Dimensions (Front View) 3334 3334 32415
46450 61340 product 0 58683 A 0 D 0 0 Heavy_Duty_Stem_Mount_Canopy_-_Side_View_-_Barn_Light_Electric.png Heavy Duty Stem Mount Canopy Dimensions (Side View) 3334 3334 58683
46467 61336 product 0 58700 A 0 D 0 0 Heavy_Duty_Wall_Backing_Plate_-_Front_View_-_Barn_Light_Electric_HDBP.jpg Heavy Duty Backing Plate Dimensions (Front View) 1000 1000 58700
48356 64943 product 0 60589 A 0 D 0 0 drum-glass-clear.jpg Drum Schoolhouse Glass, Clear 1000 1000 60589
48358 64941 product 0 60591 A 0 D 0 0 acorn-glass-opaque.jpg Acorn Schoolhouse Glass, Opaque 1000 1000 60591
48361 64942 product 0 60594 A 0 D 0 0 globe-glass-clear.jpg Round Schoolhouse Glass, Clear 1000 1000 60594
53862 62259 product 0 66095 A 0 D 0 0 Wire-Guard-Barn-Red.jpg Wire Guard, 400-Barn Red 1000 1000 66095
53865 62260 product 0 66098 A 0 D 0 0 Standard-Guard-Black.jpg Standard Cast Guard, 100-Black 1000 1000 66098
53868 62258 product 0 66101 A 0 D 0 0 Heavy-Duty-Guard-Delphite.jpg Heavy Duty Guard, 715-Delphite 1000 1000 66101
53869 62258 product 0 66102 A 0 D 0 0 Heavy-Duty-Guard-Galvanized.jpg Heavy Duty Guard, 975-Galvanized 1000 1000 66102
57047 62258 product 0 69280 A 0 C 0 0 Heavy_Duty_Guard_-_Streamline_Industrial_Guard_Sconce_-_Barn_Light_Electric_-_Bathroom_Lighting.jpg Heavy Duty Guard (Displayed Here: Streamline Industrial Guard Sconce, 311-Jadite PTMP, No Shade, Heavy Duty Guard, FST-Frosted Glass | Photo Courtesy of Sarah C Designs) 4016 6016 69280
57048 62258 product 0 69281 A 0 C 0 0 Heavy_Duty_Guard_-_Double_Market_Industrial_Guard_Sconce_-_Barn_Light_Electric_-_Bathroom_Vanity_Lighting.jpg Heavy Duty Guard (Displayed Here: Double Market Industrial Guard Sconce, 705-Navy, WS-Warehouse Shade, Clear Glass, TGG-Heavy Duty Cast Guard | Courtesy of The Cards We Drew) 750 514 69281
57049 62258 product 0 69282 A 0 C 0 0 Heavy_Duty_Guard_-_Industrial_Guard_Pendant_-_Barn_Light_Electric_-_Exterior_Pendant_Farmhouse_Lighting.jpg Heavy Duty Guard (Displayed Here: Industrial Guard Pendant Light, 615-Oil-Rubbed Bronze, SBK-Standard Black Cord, WH-Warehouse Shade, TGG-Heavy Duty Cast Guard, CLR-Clear Glass | Photo Courtesy of Between Wind and Water Design) 2960 3891 69282
57050 62258 product 0 69283 A 0 C 0 0 Heavy_Cast_Guard_-_Atomic_Topless_Double_Industrial_Guard_Sconce_-_Barn_Light_Electric_Bathroom_Lighting.png Heavy Duty Guard (Displayed Here: Atomic Topless Double Industrial Guard Sconce, 300-Dark Green, TGG-Heavy Duty Guard | Photo Courtesy of Brian Patrick Flynn) 475 594 69283
57327 62258 product 0 69560 A 0 D 0 0 Heavy-Duty-Guard-Black.jpg Heavy Duty Guard, 100-Black 475 475 69560
60880 64943 product 0 73113 A 0 D 0 0 schoolhouse-drum-chain-clear-stripe-none-charcoal-granite-cord-cloth-red-white-bulb-G30.jpg Drum Schoolhouse Chain Hung, Clear Glass with No Painted Band 1000 1000 73113
60881 64943 product 0 73114 A 0 D 0 0 Drum-schoolhouse-sconce-Blush-Pink.jpg Drum Schoolhouse Sconce, Opaque Glass with Single Band in 100-Black 1000 1000 73114
60882 64943 product 0 73115 A 0 D 0 0 schoolhouse-drum-cord-clear-stripe-PB8-copper-raw-cord-twist-brown-bulb-chrome.jpg Drum Schoolhouse Pendant, Clear Glass with Four Painted Band in 100-Black 1000 1000 73115
60883 64943 product 0 73116 A 0 D 0 0 schoolhouse-drum-flush-semi-opaque-stripe-PB9-jadite.jpg Drum Schoolhouse Semi-Flush Light, Opaque Glass with Seven Painted Band in 311-Jadite 1000 1000 73116
60884 64941 product 0 73117 A 0 D 0 0 schoolhouse-acorn-stem-clear-stripe-none-copper-oil-rubbed-bulb-G30.jpg Acorn Schoolhouse Stem Mount Light, Clear Glass with No Painted Band 1000 1000 73117
60885 64941 product 0 73118 A 0 D 0 0 schoolhouse-acorn-flush-opaque-stripe-PB5-dark-green.jpg Acorn Schoolhouse Flush Mount, Opaque Glass with Three Painted Band in 300-Dark Green 1000 1000 73118
60886 64941 product 0 73119 A 0 D 0 0 schoolhouse-acorn-flush-semi-clear-stripe-PB4-copper-raw-black-bulb-G30.jpg Acorn Schoolhouse Semi-Flush Mount, Clear Glass with Three Painted Band in 100-Black 1000 1000 73119
60887 64941 product 0 73120 A 0 D 0 0 schoolhouse-acorn-cord-opaque-clear-stripe-PB6-red-cord-twist-red-white.jpg Acorn Schoolhouse Pendant, Opaque Glass with Five Painted Band in 400-Barn Red 1000 1000 73120
65386 61337 product 0 77619 A 0 C 0 0 IMG_9490-residential-exterior-lighting-Original-Warehouse-Gooseneck-16in-765-Delphite-Blue-G22-980-Brushed-Aluminum-Decorative-Backing-Plate.jpg Decorative Backing Plate Cover (Displayed here: 16" The Original™ Warehouse Gooseneck Light, 765-Delphite Blue, G22 Arm, 980-Brushed Aluminum, Decorative Backing Plate) 2159 1766 77619
46468 61336 product 0 58701 A 1 D 0 0 Heavy_Duty_Wall_Backing_Plate_-_Side_View_-_Barn_Light_Electric_HDBP.jpg Heavy Duty Backing Plate Dimensions (Side View) 1000 1000 58701
53863 62259 product 0 66096 A 1 D 0 0 Wire-Guard-Galvanized.jpg Wire Guard, 975-Galvanized 1000 1000 66096
53866 62260 product 0 66099 A 1 D 0 0 Standard-Guard-Galvanized.jpg Standard Cast Guard, 975-Galvanized 1000 1000 66099
60876 64942 product 0 73109 A 1 D 0 0 schoolhouse-globe-flush-opaque-stripe-none-chartreuse.jpg Round Schoolhouse Flush Mount, Opaque Glass with No Painted Band 1000 1000 73109
63141 61337 product 0 75374 A 1 D 0 0 standard-decorative-backing-plate-715-delphite.jpg Decorative Backing Plate Cover, 715-Delphite 1000 1000 75374
15656 61336 product 0 27123 A 2 D 0 0 heavy_duty_backing_plate_galvanized.jpg Heavy Duty Backing Plate, 975-Galvanized 500 500 27123
57325 62259 product 0 69558 A 2 D 0 0 Wire-Guard-Black.jpg Wire Guard, 100-Black 1000 1000 69558
57326 62260 product 0 69559 A 2 D 0 0 Standard-Guard-Barn-Red.jpg Standard Cast Guard, 400-Barn Red 1000 1000 69559
60877 64942 product 0 73110 A 2 D 0 0 schoolhouse-globe-cord-clear-stripe-PB10-galvanized-jadite-cord-cloth-black-bulb-round.jpg Round Schoolhouse Pendant, Clear Glass with Two Painted Band in 311-Jadite 1000 1000 73110
63139 61337 product 0 75372 A 2 D 0 0 standard-decorative-backing-plate-400-barn-red.jpg Decorative Backing Plate Cover, 400-Barn Red 1000 1000 75372
15727 61336 product 0 27206 A 3 D 0 0 heavy_duty_backing_plate_gooseneck.jpg Heavy Duty Backing Plate, 975-Galvanized with Gooseneck Arm 600 357 27206
46716 61337 product 0 58949 A 3 D 0 0 standard-decorative-backing-plate-997-raw-brass.jpg Decorative Backing Plate Cover, 997-Natural Raw Brass 1000 1000 58949
57051 62259 product 0 69284 A 3 C 0 0 Wire_Cast_Guard_-_Barn_Light_Electric_-_Bathroom_Vanity_Lighting.jpg Wire Guard (Displayed Here: Atomic Topless Double Industrial Guard Sconce, 975-Galvanized, WGG-Wire Guard, SMK-Smoke Crackle Glass) 1000 667 69284
57055 62260 product 0 69288 A 3 C 0 0 Standard_Cast_Guard_-_Streamline_Industrial_Guard_Sconce_-_Barn_Light_Electric_Bathroom_Vanity_Sconce_Lighting.jpg Standard Cast Guard (Displayed Here: Streamline Industrial Guard Sconce, 100-Black, No Shade, CGG-Standard Cast Guard, FST-Frosted Glass) 667 1000 69288
60879 64942 product 0 73112 A 3 D 0 0 schoolhouse-globe-gooseneck-opaque-stripe-PB11-G26-barn-red.jpg Round Schoolhouse Gooseneck Light, Opaque Glass with Three Painted Band in 400-Barn Red 1000 1000 73112
57052 62259 product 0 69285 A 4 C 0 0 Wire_Guard_-_Flush_Mount_Guard_Sconce_-_Barn_Light_Electric_Commercial_Bar_Lighting.jpg Wire Guard (Displayed Here: Flush Mount Guard Sconce, 311-Jadite, WGG-Wire Guard, CLR-Clear Glass | Courtesy of The Garden Table) 768 512 69285
57056 62260 product 0 69289 A 4 C 0 0 Standard_Cast_Guard_-_Industrial_Guard_Sconce_-_Barn_Light_Electric_Bathroom_Vanity_Lighting.png Standard Cast Guard (Displayed Here: Industrial Guard Sconce, 100-Black, Flared Shade, CGG-Standard Cast Guard, Clear Glass | Photo Courtesy of Two Hawks Design & Development) 479 599 69289
60878 64942 product 0 73111 A 4 D 0 0 schoolhouse-globe-stem-clear-stripe-PB12-brass-raw-black-bulb-chrome.jpg Round Schoolhouse Stem Mount Pendant, Clear Glass with Four Painted Band in 100-Black 1000 1000 73111
62403 61336 product 0 74636 A 4 C 0 0 Bomber_Gooseneck_Light_11in_605-Rust_G15arm_HDBP__2_.jpg Heavy Duty Backing Plate (Displayed here: 11” Bomber, 605-Rust, G15 Gooseneck Arm, Heavy Duty Backing Plate | Photo Courtesy of Homeowner) 1715 1401 74636
63140 61337 product 0 75373 A 4 D 0 0 standard-decorative-backing-plate-615-oil-rubbed-bronze.jpg Decorative Backing Plate Cover, 615-Oil-Rubbed Bronze 1000 1000 75373
15694 61337 product 0 27169 A 5 D 0 0 Decorative-Backing-Plate-Cover.jpg Decorative Backing Plate Cover w/ Gooseneck 600 600 27169
57053 62259 product 0 69286 A 5 C 0 0 Wire_Guard_-_Industrial_Loft_Double_Pendant_-_Barn_Light_Electric_-_Bathroom_Pendant_Lighting-100-Black.jpg Wire Guard (Displayed Here: Industrial Loft Double Pendant, 100-Black, WGG - Wire Guard, Cast Guard Finish Same as Fixture | Photo Courtesy of Erica (@newhomeoldsoul)) 1500 2250 69286
57057 62260 product 0 69290 A 5 C 0 0 Standard_Cast_Guard_-_Industrial_Guard_Pendant_Light_-_Barn_Light_Electric_Kitchen_Pendant_Lighting.jpg Standard Cast Guard (Displayed Here: Industrial Guard Pendant Light, 975-Galvanized, Warehouse Shade, CGG-Standard Cast Guard, CLR-Clear Glass, SBK-Standard Black Cord) 600 840 69290
62404 61336 product 0 74637 A 5 C 0 0 Bomber_Gooseneck_Light_11in_605_Rust_G15arm_HDBP.jpg Heavy Duty Backing Plate (Displayed here: 11” Bomber, 605-Rust, G15 Gooseneck Arm, Heavy Duty Backing Plate | Photo Courtesy of Homeowner) 1500 1771 74637
46448 61337 product 0 58681 A 6 D 0 0 Decorative_Backing_Plate_Cover_-_Front_View_-_Barn_Light_Electric.png Decorative Backing Plate Cover Dimensions (Front View) 3334 3334 58681
57054 62259 product 0 69287 A 6 C 0 0 Wire_Guard_-_Barn_Light_Electric_-_Bathroom_Vanity_Lighting.jpg Wire Guard (Displayed Here: Atomic Topless Double Industrial Guard Sconce, 975-Galvanized, WGG-Wire Guard) 600 900 69287
59191 61336 product 0 71424 A 6 C 0 0 The_Original™_Warehouse_Nautical_LED_Gooseneck_Light_-_Barn_Light_Electric_-_Modern_LED_Garage_Lighting.jpg Heavy Duty Backing Plate (Displayed here: 16” The Original™ Nautical LED, 355-Porcelain Jadite, G22 Gooseneck Arm in 350-Vintage Green, TGG-Heavy Duty Cast Guard in 150-Black, CLR-Clear Glass, Heavy Duty Backing Plate, 3500K - Bright White Color Temp | Photo Courtesy of Homeowner) 1500 1125 71424
59547 62260 product 0 71780 A 6 C 0 0 Industrial_Guard_Sconce_-_Barn_Light_Electric_-_Outdoor_Exterior_Lighting_ziln-s0.JPG Standard Cast Guard (Pictured here: Industrial Guard Sconce, 715-Delphite Blue PTMP, CGG-STandard Cast Guard in 975-Galvanized, Frosted Glass, 2700K Color Temp | Photo Courtesy of Studio Baron) 1122 1496 71780
46449 61337 product 0 58682 A 7 D 0 0 Decorative_Backing_Plate_Cover_-_Side_View_-_Barn_Light_Electric.png Decorative Backing Plate Cover Dimensions (Side View) 3334 3334 58682
57058 62260 product 0 69291 A 7 C 0 0 Standard_Cast_Guard_-_Industrial_Loft_Double_Pendant_Light_-_Barn_Light_Electric_-_Farmhouse_Bathroom_Vanity_Sconce_Lighting-alt.jpg Standard Cast Guard (Displayed Here: Industrial Loft Double Pendant Light, 105-Textured Black, CGG-Standard Cast Guard, FST-Frosted Glass | Photo Courtesy of @petitesol and Millimeter Photo) 1500 2250 69291
63803 61336 product 0 76036 A 7 C 0 0 residential-exterior-lighting-porch-Newport-Gooseneck-Light-705-Navy-G22arm-Heavy-Duty-Backing-Plate.jpg Heavy Duty Backing Plate (Displayed here: Newport Gooseneck Light, 705 Navy, G22 Gooseneck Arm, HDBP-Heavy Duty Backing Plate | Photo Courtesy of Homeowner) 1500 1750 76036
66069 61336 product 0 78302 A 7 C 0 0 IMG_9562-residential-exterior-lighting-Original-Dual-Arm-Sign-Light-14in-996-Weathered-Copper-12in-arm-106-Matte-Black-Heavy-Duty-Backing-Plate_5let-cz.jpg Heavy Duty Backing Plate (Displayed here: The Original™ Dual Arm Sign Light, 14" Shades, 996-Weathered Copper, 12" Arm, 106-Matte Black, Heavy Duty Backing Plate | Customer Submission) 3024 4032 78302
56302 61337 product 0 68535 A 8 D 0 0 original-12-inch-gooseneck-brass.jpg Decorative Backing Plate Cover (Displayed Here: 12" The Original™, 997-Raw Brass, G24 Gooseneck Arm, Decorative Backing Plate & Hex Cover) 600 600 68535
56303 61337 product 0 68536 A 9 C 0 0 Decorative_Backing_Plate_Cover_-_Union_Gooseneck_Light_-_Barn_Light_Electric_-_Farmhouse_Bathroom_Vanity.jpg Decorative Backing Plate Cover (Displayed Here: 10" Union, 995-Raw Copper, G22 Gooseneck Arm, 100-Black, Decorative Copper Backing Plate & Hex Cover | Photo Courtesy of Amy from My Life from Home) 512 768 68536
56304 61337 product 0 68537 A 10 C 0 0 Sinclair_Gooseneck_Light_-_Barn_Light_Electric_-_Modern_Farmhouse_Brass_Kitchen_Lighting.jpeg Decorative Backing Plate Cover (Displayed Here:10" Sinclair Gooseneck Light, 200-White Finish, G34 Gooseneck Arm in a 200-White Finish, Brass Backing Plate & Hex Cover | Photo Courtesy of Taylor Newton Photography) 2048 1365 68537
66331 61337 product 0 78564 A 11 C 0 0 IMG_2193-residential-exterior-lighting-barn-shed-Emblem-LED-Sign-Light-12in-250-White-G64arm-150-Black-Swivel-Knuckle-Decorative-BP-Hex-Cover_mz6v-ve.jpeg Decorative Backing Plate (Pictured here: Emblem LED Sign Light, 250-White, G64 Arm, 150-Black, Swivel Knuckle, Decorative Backing Plate, Hex Cover) Photo Courtesy of Mountain Field Farms 4032 3024 78564
56307 61337 product 0 68540 A 12 C 0 0 Primary_Schoolhouse_Gooseneck_Light_-_Decorative_Backing_Plate_Cover_-_Modern_Farmhouse_Vanity_Lighting.jpg Decorative Backing Plate Cover (Displayed Here: Primary Schoolhouse Gooseneck Light, 996-Weathered Brass, Clear Glass, No Painted Band, G11 Gooseneck Arm | Photo Courtesy of Christina’s Adventures) 3233 2155 68540
56305 61337 product 0 68538 A 13 C 0 0 Chestnut_Gooseneck_Light_-_Decorative_Backing_Plate_-_Barn_Light_Electric_-_Farmhouse_Front_Porch_Lighting.jpg Decorative Backing Plate Cover (Displayed Here: 12” Chestnut, 995-Raw Copper, G15 Gooseneck Arm, Decorative Backing Plate Cover | Photo Courtesy of Natalie Jensen @nataliedarlingblog) 3465 5045 68538
56308 61337 product 0 68541 A 14 C 0 0 Primary_Schoolhouse_Gooseneck_Light_-_Barn_Light_Electric_-_Decorative_Backing_Plate_Cover_-_Farmhouse_Bathroom_Vanity_Lighting.jpg Decorative Backing Plate Cover (Displayed Here: Primary Schoolhouse Gooseneck Light, 998-Natural Weathered Brass, Small Clear Glass, No Painted Band, G11 Gooseneck Arm, Brass Backing Plate & Hex Cover | Photo Courtesy of Celebrity Style Guide) 2938 3671 68541
56309 61337 product 0 68542 A 15 C 0 0 Decorative_Backing_Plate_Cover_-_Barn_Light_Electric_-_Primary_Schoolhouse_Gooseneck_Light_-_Farmhouse_Modern_Bathroom_Vanity.jpg Decorative Backing Plate Cover (Displayed Here: Primary Schoolhouse Gooseneck Light, 999-Oil-Rubbed Copper, Small Clear Glass, No Painted Band, G15 Gooseneck Arm) 1536 1495 68542
59587 61337 product 0 71820 A 16 C 0 0 Bomber_Gooseneck_Light_-_Barn_Light_Electric_-_Raw_Copper_Exterior_Lighting_civp-m2.jpg Decorative Backing Plate Cover (Displayed here: 11” Bomber, 995-Raw Copper, G15 Gooseneck Arm in 995-Raw Copper, Copper Backing Plate & Hex Cover (Also Pictured: Sydney Flush Mount Pendant) | Photo Courtesy of Rayna Vogel Interior Design) 1242 1207 71820
62180 61337 product 0 74413 A 17 C 0 0 baba-commercial-exterior--aero-gooseneck-705-navy-G8-alt_d0gr-x1.jpg Decorative Backing Plate Cover (Displayed here: 12" Aero, 705-Navy, G8 Gooseneck Arm) 2000 3000 74413