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 (62229, 63513, 64353, 64865) 
ORDER BY 
  cscart_images_links.position, 
  cscart_images_links.pair_id

Query time 0.00150

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": 73,
          "filtered": 100,
          "index_condition": "cscart_images_links.object_type = 'product' and cscart_images_links.`type` = 'A' and cscart_images_links.object_id in (62229,63513,64353,64865)"
        }
      }
    },
    "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
20675 62229 product 0 32504 A 0 D 0 0 Minimal_Sconce_Brass__2.jpg Downtown Minimalist Sconce, 997-Natural Raw Brass, 1910 Era 40w Edison-Style Bulb 600 600 32504
26495 63513 product 0 38662 A 0 D 0 0 downtown-wall-sconce-red-web2.jpg Downtown Minimalist Adjustable Sconce, 400-Barn Red, Nostalgic Edison-Style 1890 Era Victorian 40W Bulb 600 600 38662
30507 64353 product 0 42739 A 0 D 0 0 downtown-swing-arm-sconce-14-angle.jpg Downtown Swing Arm Sconce, 311-Jadite PTMP, G66 Arm, Nostalgic Edison Style 1890 Era Bulb 1000 1000 42739
49005 64865 product 0 61238 A 0 D 0 0 Timber-Ore-Downtown-Minimalist-Wooden-Socket-Sconce-Ash-White-LED-T10-Edison-Bulb.jpg Downtown Minimalist Wooden Socket Sconce, 200-White, Ash Wood, Shown with LED T10 Bulb 600 600 61238
49006 64865 product 0 61239 A 0 D 0 0 Timber-Ore-Downtown-Minimalist-Wooden-Socket-Sconce-Maple-Teal-40W-1910-Era-Edison-Bulb.jpg Downtown Minimalist Wooden Socket Sconce, 390-Teal, Maple Wood, Shown with Edison 1910 Era Bulb 600 600 61239
49007 64865 product 0 61240 A 0 D 0 0 Timber-Ore-Downtown-Minimalist-Wooden-Socket-Sconce-Walnut-Black-LED-ST19-Edison-Bulb.jpg Downtown Minimalist Wooden Socket Sconce, 100-Black, Walnut Wood, Shown with LED ST19 Edison Bulb 600 600 61240
49008 64865 product 0 61241 A 0 D 0 0 Timber-Ore-Downtown-Minimalist-Wooden-Socket-Sconce-Ash-Blush-Pink-Totem-III-Edison-Bulb.jpg Downtown Minimalist Wooden Socket Sconce, 380-Blush Pink, Ash Wood, Shown with Totem III Edison Lamp 600 600 61241
55508 64865 product 0 67741 A 0 C 0 0 RR-Early_Avery_Rafterhouse_light_deetail_two-alt.jpg Downtown Minimalist Wooden Socket Sconce, 100-Black, Walnut Wood | Photo Courtesy of Early Avery - Rafterhouse and Roehner+Ryan 1500 2000 67741
55515 64865 product 0 67748 A 0 C 0 0 RR-Early_Avery_Rafterhouse_kitchen_one_zy9a-zk-alt.jpg Downtown Minimalist Wooden Socket Sconce, 100-Black, Walnut Wood (Shown with Timber & Ore Collection Conoco Draftsman Pendant) | Photo Courtesy of Early Avery - Rafterhouse and Roehner+Ryan 1500 1125 67748
55516 64865 product 0 67749 A 0 C 0 0 RR-Early_Avery_Rafterhouse_hall_bath-alt.jpg Downtown Minimalist Wooden Socket Sconce, 100-Black, Walnut Wood | Photo Courtesy of Early Avery - Rafterhouse and Roehner+Ryan 1500 2000 67749
66340 64865 product 0 78573 A 0 C 0 0 Photo_Sep_20,_5_45_17_PM-residential-interior-lighting-on-Downtown-Minimalist-Wooden-Socket-Wall-Sconce-Oak-106-Matte-Black-Porcelain-II-LED-Bulb.jpg Downtown Minimalist Wooden Socket Wall Sconce, Oak, 106-Matte Black, LED Bulb | Photo Courtesy of John Colaneri 3024 4032 78573
66341 64865 product 0 78574 A 0 C 0 0 Photo_Sep_03,_1_56_54_PM-residential-interior-lighting-on-bathroom-vanity-Downtown-Minimalist-Wooden-Socket-Wall-Sconce-Oak-106-Matte-Black-Porcelain-II-LED-Bulb.jpg Downtown Minimalist Wooden Socket Wall Sconce, Oak, 106-Matte Black, LED Bulb | Photo Courtesy of John Colaneri 3024 4032 78574
66342 64865 product 0 78575 A 0 C 0 0 Photo_Sep_03,_1_57_08_PM-residential-interior-lighting-on-bathroom-vanity-Downtown-Minimalist-Wooden-Socket-Wall-Sconce-Oak-106-Matte-Black-Porcelain-II-LED-Bulb.jpg Downtown Minimalist Wooden Socket Wall Sconce, Oak, 106-Matte Black, LED Bulb | Photo Courtesy of John Colaneri 3024 4032 78575
67102 64865 product 0 79335 A 0 C 0 0 image-residential-interior-lighting-bathroom-vanity-Downtown-Minimalist-Wooden-Socket-Wall-Sconce-Ash-Wood-106-Matte-Black.jpg Downtown Minimalist Wooden Socket Wall Sconce, Ash Wood, 106-Matte Black | Customer Submission 3004 3420 79335
72613 62229 product 0 84846 A 0 C 0 0 residential-interior-bathroom-sink-downtown-minimalist-wall-sconce-430-soft-clay.jpg Downtown Minimalist Sconce, 430-Soft Clay, Shown with LED Frosted A19 810 Lumen Bulb 2000 1333 84846
20681 62229 product 0 32510 A 1 C 0 0 downtown-sconce-buttery-yellow-edit.jpg Downtown Minimalist Sconce, 500-Buttery Yellow | Tybee Island, GA 800 600 32510
26499 63513 product 0 38666 A 1 D 0 0 downtown-wall-sconce-teal-web2.jpg Downtown Minimalist Adjustable Sconce, 390-Teal, Nostalgic Edison-Style 1890 Era 40W Bulb 600 600 38666
30511 64353 product 0 42743 A 1 D 0 0 downtown-swing-arm-sconce-swivel-14-delphite.jpg Downtown Swing Arm Sconce, 715-Delphite PTMP, G67 Arm, Nostalgic Edison Style 1890 Era Bulb 1000 1000 42743
30080 63513 product 0 42303 A 2 D 0 0 downtown-wall-sconce-brass-weathered-web2.jpg Downtown Minimalist Adjustable Sconce, 998-Natural Weathered Brass, Nostalgic Edison-Style 1890 Era 40W Bulb 600 600 42303
30508 64353 product 0 42740 A 2 D 0 0 downtown-swing-arm-sconce-swivel-20-black.jpg Downtown Swing Arm Sconce, 100-Black, G69 Arm, Nostalgic Edison Style Victorian Bulb 1000 1000 42740
35911 62229 product 0 48144 A 2 C 0 0 downtown_minimalist_wall_sconce_jadite2.jpg Downtown Minimalist Sconce, 311-Jadite PTMP, 1890 Era 40w Edison-Style Bulb 2000 1333 48144
26590 63513 product 0 38759 A 3 D 0 0 downtown-wall-sconce-black-web-angled2.jpg Downtown Minimalist Adjustable Sconce, 100-Black, Nostalgic Edison-Style 1890 Era Bulb, Adjusted 600 600 38759
30509 64353 product 0 42741 A 3 D 0 0 downtown-swing-arm-sconce-swivel-14-chartreuse.jpg Downtown Swing Arm Sconce, 380-Chartreuse, G67 Arm, Nostalgic Edison Style 1890 Era Bulb 1000 1000 42741
58547 62229 product 0 70780 A 3 C 0 0 Downtown_Minimalist_Wall_Sconce_-_Barn_Light_Electric_-_Modern_Restaurant_Lighting.jpg Downtown Minimalist Sconce, 705-Navy | Photo Courtesy of Sully Clemmer Photography and Ferriss + Company Design Studio 5000 3333 70780
22785 62229 product 0 34689 A 4 C 0 0 downtown-sconces-brass.jpg Downtown Minimalist Sconce, 997-Natural Raw Brass, Hairpin 30w Edison-Style Bulb 1280 853 34689
26501 63513 product 0 38668 A 4 D 0 0 downtown-wall-sconce-delphite-web2.jpg Downtown Minimalist Adjustable Sconce, 715-Delphite, Nostalgic Edison-Style 1890 Era 40W Bulb 600 600 38668
30510 64353 product 0 42742 A 4 D 0 0 downtown-swing-arm-sconce-14-galvanized.jpg Downtown Swing Arm Sconce, 975-Galvanized, G66 Arm, Nostalgic Edison Style 1890 Era Bulb 1000 1000 42742
26496 63513 product 0 38663 A 5 D 0 0 downtown-wall-sconce-galvanized-web2.jpg Downtown Minimalist Adjustable Sconce, 975-Galvanized, Nostalgic Edison-Style 1890 Era 40W Bulb 600 600 38663
32588 64353 product 0 44821 A 5 D 0 0 downtown-swing-arm-sconce-20-barn-red.jpg Downtown Swing Arm Sconce, 400-Barn Red, G68 Arm, Nostalgic Edison Style 1890 Era Bulb 1000 1000 44821
53838 62229 product 0 66071 A 5 C 0 0 Downtown_Minimalist_Wall_Sconce_-_Barn_Light_Electric_-_Bathroom_-_Orange_Finish.jpg (2) Downtown Minimalist Sconces, 420-Orange, Half-Chrome Bulbs | Photo Courtesy of Homeowner 768 1024 66071
21223 62229 product 0 33104 A 6 D 0 0 downtown-minimalist-sconce-480-blush.jpg Downtown Minimalist Sconce, 480-Blush Pink, Victorian 25w Edison-Style Bulb 600 600 33104
26500 63513 product 0 38667 A 6 D 0 0 downtown-wall-sconce-jadite-web2.jpg Downtown Minimalist Adjustable Sconce, 311-Jadite, Nostalgic Edison-Style 1890 Era Victorian 40W Bulb 600 600 38667
32603 64353 product 0 44836 A 6 D 0 0 Downtown-Swing-Arm-Sconce-Delphite-Tala-Bulb-6W-2700k-Noma.jpg Downtown Swing Arm Sconce, 715-Delphite Blue PTMP, G69 Arm | Shown with Noma Tala Lamp 1000 1000 44836
20680 62229 product 0 32509 A 7 D 0 0 Minimal_Sconce_Jadite_2.jpg Downtown Minimalist Sconce, 311-Jadite PTMP, 1890 Era 40w Edison-Style Bulb 600 600 32509
30517 64353 product 0 42749 A 7 C 0 0 downtown-swingarm-insetting.jpg (4) Downtown Swing Arm Sconces, 100-Black, G69 Arms, Nostalgic Edison Style Victorian Bulbs 750 500 42749
32482 63513 product 0 44715 A 7 C 0 0 downtown_minimalist_adjust_sconce_blk3.jpg Downtown Minimalist Adjustable Sconce, 100-Black | Photo courtesy of homeowner and Jonathan Garza Photography 2402 3600 44715
21221 62229 product 0 33102 A 8 D 0 0 downtown-minimalist-sconce-490-magenta.jpg Downtown Minimalist Sconce, 490-Magenta, 1890 Era 40w Edison-Style Bulb 600 596 33102
32481 63513 product 0 44714 A 8 C 0 0 downtown_minimalist_adjust_sconce_100_blk.jpg (2) Downtown Minimalist Adjustable Sconces, 100-Black | Photo courtesy of homeowner and Jonathan Garza Photography 1500 1001 44714
49907 64353 product 0 62140 A 8 C 0 0 downtown_swing_arm_sconce_butteryyellow_G67arm3.jpg Downtown Swing Arm Sconce, 500-Buttery Yellow, G67 Arm | Photo Courtesy of Kim Lewis Designs and Photography by Fajar Hassan 1361 2040 62140
20673 62229 product 0 32502 A 9 D 0 0 Minimal_Sconce_Black_2.jpg Downtown Minimalist Sconce, 100-Black, Hairpin 30w Edison-Style Bulb 600 600 32502
48405 64353 product 0 60638 A 9 C 0 0 downtown_swing_arm_sconce_100_Black_G66_14inarm3.jpg Downtown Swing Arm Sconces, 100-Black, G66 14” Arms | Photo Courtesy of Hunter Design & Build 1500 1692 60638
51661 63513 product 0 63894 A 9 C 0 0 Downtown-Minimalist-Wall-Sconce-Black-Bathroom-Farmhouse.png Downtown Minimalist Adjustable Sconce, 105-Textured Black, Nostalgic Edison 1890 Era Bulb | Courtesy of Christina's Adventures 523 784 63894
21222 62229 product 0 33103 A 10 D 0 0 downtown-minimalist-390-teal.jpg Downtown Minimalist Sconce, 390-Teal, 1890 Era 40w Edison-Style Bulb 600 600 33103
48406 64353 product 0 60639 A 10 C 0 0 downtown_swing_arm_sconce_100_black_G66_14inarm4.jpg Downtown Swing Arm Sconces, 100-Black, G66 14” Arms | Photo Courtesy of Hunter Design & Build 1500 1063 60639
60776 63513 product 0 73009 A 10 C 0 0 Downtown_Minimalist_Adjustable_Wall_Sconce_-_100-Black_Barn_Light_Electric_-_Modern_Wall_Sconce_Lighting4.jpg Downtown Minimalist Adjustable Sconce, 100-Black | Photo Courtesy of Designs North West 1500 1781 73009
20676 62229 product 0 32505 A 11 D 0 0 Minimal_Sconce_Yellow_2-copy.jpg Downtown Minimalist Sconce, 500-Buttery Yellow, G30 40w Edison-Style Bulb 600 600 32505
30277 63513 product 0 42500 A 11 C 0 0 bathroom_lighting_sconces-682x1024-512x768.jpg (2) Downtown Minimalist Adjustable Sconces, 105-Textured Black, Nostalgic Edison 1890 Era Bulbs | Courtesy of Christina's Adventures 512 768 42500
49909 64353 product 0 62142 A 11 C 0 0 downtown_swing_arm_sconce_500_butteryyellow_G68arm2.jpg Downtown Swing Arm Sconce, 500-Buttery Yellow, G67 Arm | Photo Courtesy of Kim Lewis Designs and Photography by Fajar Hassan 1500 1001 62142
20679 62229 product 0 32508 A 12 D 0 0 Minimal_Sconce_Galvanized_2.jpg Downtown Minimalist Sconce, 975-Galvanized, G25 Half-Crome 40w Light Bulb 600 600 32508
32451 64353 product 0 44684 A 12 C 0 0 file-3.jpeg Downtown Swing Arm Sconce, 715-Delphite PTMP, G67 Arm | Photo Courtesy of Haley W. 1242 1231 44684
60773 63513 product 0 73006 A 12 C 0 0 Downtown_Minimalist_Adjustable_Wall_Sconce_-_100-Black_Barn_Light_Electric_-_Modern_Wall_Sconce_Lighting.jpg Downtown Minimalist Adjustable Sconce, 100-Black | Photo Courtesy of Designs North West 1500 2250 73006
20678 62229 product 0 32507 A 13 D 0 0 Minimal_Sconce_Orange_1.jpg Downtown Minimalist Sconce, 420-Orange, 1890 Era 40w Edison-Style Bulb 600 600 32507
30276 63513 product 0 42499 A 13 C 0 0 wall_sconce_lighting-683x1024-512x768.jpg Downtown Minimalist Adjustable Sconce, 105-Textured Black, Nostalgic Edison 1890 Era Bulb | Courtesy of Christina's Adventures 512 768 42499
49908 64353 product 0 62141 A 13 C 0 0 downtown_swing_arm_sconce_500_buttery_yellow_G67arm4.jpg Downtown Swing Arm Sconce, 500-Buttery Yellow, G67 Arm | Photo Courtesy of Kim Lewis Designs and Photography by Fajar Hassan 1500 1875 62141
20677 62229 product 0 32506 A 14 D 0 0 Minimal_Sconce_White_1.jpg Downtown Minimalist Sconce, 200-White, Victorian 25w Edison-Style Bulb 600 600 32506
30081 63513 product 0 42304 A 14 C 0 0 brass_wall_sconce_light-512x768.jpg Downtown Minimalist Adjustable Sconce, 997-Raw Brass | Customer Submission 512 768 42304
31960 64353 product 0 44193 A 14 C 0 0 downtown_swing_arm_sconce_380_chartreuse_20inarm_swivel_knuckle5_k06p-qz.jpg Downtown Swing Arm Sconce, 380-Chartreuse, G69 Arm | Photo Courtesy of Old World Brewing in Asheville, North Carolina 1500 2252 44193
20674 62229 product 0 32503 A 15 D 0 0 Minimal_Sconce_Red_1-copy.jpg Downtown Minimalist Sconce, 400-Barn Red, Hairpin 30w Edison-Style Bulb 600 600 32503
33281 63513 product 0 45514 A 15 C 0 0 brass_wall_lights-512x768.jpg Downtown Minimalist Adjustable Sconce, 997-Raw Brass | Customer Submission 512 768 45514
58532 64353 product 0 70765 A 15 C 0 0 Downtown_Swing_Arm_Sconce_-_100_Black_Barn_Light_Electric_-_Modern_Bedside_Lighting.jpg Downtown Swing Arm Sconce, 105-Textured Black, G67 Arm, Oblo LED Tala Lamp | Photo Courtesy of Tosnflies Photography 1500 1434 70765
32586 62229 product 0 44819 A 16 D 0 0 Minimal_Sconce_Delphite_2.jpg Downtown Minimalist Sconce, 715-Delphite PTMP, Victorian 25w Edison-Style Bulb 600 600 44819
51660 63513 product 0 63893 A 16 C 0 0 Downtown-Minimalist-Adjustable-Sconce-Black-6W-2200k-Elva-Tala-Bulb4.jpg Downtown Minimalist Adjustable Sconce, 100-Black | Shown with Elva Tala Bulb 1000 1000 63893
58533 64353 product 0 70766 A 16 C 0 0 Downtown_Swing_Arm_Sconce_-_100_Black_Barn_Light_Electric_-_Modern_Interior_Bedroom_Lighting.jpg Downtown Swing Arm Sconce, 105-Textured Black, G67 Arm, Oblo LED Tala Lamp | Photo Courtesy of Tosnflies Photography 1500 1060 70766
60774 63513 product 0 73007 A 17 C 0 0 Downtown_Minimalist_Adjustable_Wall_Sconce_-_Barn_Light_Electric_-_Modern_Wall_Sconce_Lighting2.jpg Downtown Minimalist Adjustable Sconce, 100-Black | Photo Courtesy of Designs North West 3280 3700 73007
49912 62229 product 0 62145 A 18 C 0 0 downtown_minimalist_sconce_delphite_blue2.JPG Downtown Minimalist Sconce, 4715-Delphite Blue | Photo Courtesy of Maggie Natarelli 3024 4032 62145
60775 63513 product 0 73008 A 18 C 0 0 Downtown_Minimalist_Adjustable_Wall_Sconce_-_Barn_Light_Electric_-_Modern_Wall_Sconce_Lighting3.jpg Downtown Minimalist Adjustable Sconce, 100-Black | Photo Courtesy of Designs North West 3882 3656 73008
38479 62229 product 0 50712 A 19 C 0 0 wall_sconce_lighting_vanity-576x768.jpg Downtown Minimalist Sconce, 480-Blush Pink, 1910 Era 40w Edison-Style Bulb | Photo Courtesy of Homeowner 576 768 50712
63842 63513 product 0 76075 A 19 D 0 0 residential-interior-lighting-hallway-stairway-Downtown-Minimalist-Adjustable-Wall-Sconce-975-Galvanized-Victorian-Edison-Bulbs.jpg Downtown Minimalist Adjustable Sconce, 975- Galvanized, Victorian Edison Bulbs | Photo Courtesy of Homeowner 1500 2105 76075
49913 62229 product 0 62146 A 20 C 0 0 downtown_minimalist_sconce_delphite_blue.JPG Downtown Minimalist Sconce, 415-Delphite Blue | Photo Courtesy of Maggie Natarelli 3024 4032 62146
61172 63513 product 0 73405 A 20 C 0 0 Downtown_Minimalist_Adjustable_Wall_Sconce_615-ORB3.JPG Downtown Minimalist Adjustable Sconce, 615-Oil-Rubbed Bronze | Photo Courtesy of Weston & Co Home Decor 1200 1600 73405
58548 62229 product 0 70781 A 21 C 0 0 Flush_Mount_Guard_Sconce_-_Barn_Light_Electric_-_Commercial_Restaurant_Bar_Lighting_ijlc-w9.jpg Downtown Minimalist Sconce, 705-Navy, Also Pictured: Flush Mount Guard Sconce | Photo Courtesy of Sully Clemmer Photography and Ferriss + Company Design Studio 5000 3333 70781
61171 63513 product 0 73404 A 21 C 0 0 Downtown_Minimalist_Adjustable_Wall_Sconce_-_Black_Barn_Light_Electric_-_Kitchen_Lighting.jpg Downtown Minimalist Adjustable Sconce, 615-Oil-Rubbed Bronze | Photo Courtesy of Weston & Co Home Decor 1500 2000 73404
58985 62229 product 0 71218 A 22 C 0 0 Downtown_Minimalist_Sconce_-_Barn_Light_Electric_-_Farmhouse_Bathroom_Lighting.JPG Downtown Minimalist Sconce, 800-Industrial Grey, Totem III LED Tala Lamp | Photo Courtesy of Homeowner 741 1009 71218