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 (64723, 64275, 65083, 64276) 
ORDER BY 
  cscart_images_links.position, 
  cscart_images_links.pair_id

Query time 0.00083

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": 49,
          "filtered": 100,
          "index_condition": "cscart_images_links.object_type = 'product' and cscart_images_links.`type` = 'A' and cscart_images_links.object_id in (64723,64275,65083,64276)"
        }
      }
    },
    "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
29361 64276 product 0 41581 A 0 D 0 0 Conoco-swing-arm-10in-plug-in-black-socket-100-black-standard-black-cord.jpg Conoco Swing Arm Sconce, 100-Black, Black Socket with Knob Switch, Arm in 100-Black, SBK-Standard Black Cord, Nostalgic Edison-Style 40W 1910 Era Bulb 1000 1000 41581
52461 65083 product 0 64694 A 0 D 0 0 Seaside-Sconce-14in-355-jadite.jpg 14" Seaside LED Wall Sconce, 355-Porcelain Jadite 1000 1000 64694
63819 64723 product 0 76052 A 0 D 0 0 Seaside-Sconce-16in-975-galvanized.jpg 16" Seaside Wall Sconce, 975-Galvanized 1000 1000 76052
69566 64275 product 0 81799 A 0 D 0 0 Gladstone-swing-arm-8in-plug-in-brass-socket-200-white-gold-white-cloth-cord.jpg 8" Gladstone Swing Arm Sconce, 200-White, Brass Socket with Knob Switch, Arm in 200-White, CSGW-Gold & White Cloth Cord 1000 1000 81799
29365 64276 product 0 41585 A 1 D 0 0 Conoco-swing-arm-10in-plug-in-black-socket-480-blush-pink-standard-black-cord.jpg Conoco Swing Arm Sconce, 480-Blush Pink, Black Socket with Knob Switch, Arm in 480-Blush Pink, SBK-Standard Black Cord, Nostalgic Edison-Style 40W 1910 Era Bulb 1000 1000 41585
29369 64275 product 0 41589 A 1 D 0 0 Gladstone-swing-arm-6in-plug-in-nickel-socket-100-black-307-emerald-green-blue-white-cloth-cord.jpg 6" Gladstone Swing Arm Sconce, 307-Emerald Green, Nickel Socket with Knob Switch, Arm in 100-Black, CSUW-Blue & White Cloth Cord, Nostalgic Edison-Style 40W 1910 Era Bulb 1000 1000 41589
63817 64723 product 0 76050 A 1 D 0 0 Seaside-Sconce-16in-400-barn-red-WGG-RIB.jpg 16" Seaside Wall Sconce, 400-Barn Red, WGG-Wire Guard, RIB-Ribbed Glass 1000 1000 76050
63823 65083 product 0 76056 A 1 D 0 0 Seaside-Sconce-16in-975-galvanized_cq4m-s4.jpg 16" Seaside LED Wall Sconce, 975-Galvanized 1000 1000 76056
52459 65083 product 0 64692 A 2 D 0 0 Seaside-Sconce-12in-480-blush-pink.jpg 12" Seaside LED Wall Sconce, 480-Blush Pink 1000 1000 64692
63814 64723 product 0 76047 A 2 D 0 0 Seaside-Sconce-12in-500-buttery-yellow.jpg 12" Seaside Wall Sconce, 500-Buttery Yellow 1000 1000 76047
69559 64276 product 0 81792 A 2 D 0 0 Conoco-swing-arm-10in-plug-in-nickel-socket-100-black-307-emerald-green-blue-white-cloth-cord.jpg Conoco Swing Arm Sconce, 307-Emerald Green, Nickel Socket with Knob Switch, Arm in 100-Black, CSUW-Blue & White Cloth Cord, Nostalgic Edison-Style 40W 1910 Era Bulb 1000 1000 81792
69568 64275 product 0 81801 A 2 D 0 0 Gladstone-swing-arm-10in-plug-in-black-socket-975-galvanized-standard-black-cord.jpg 10" Gladstone Swing Arm Sconce, 975-Galvanized, Black Socket with Knob Switch, Arm in 975-Galvanized, SBK-Standard Black Cord 1000 1000 81801
36632 64723 product 0 48865 A 3 D 0 0 Seaside-Sconce-16in-705-navy-TGG-RIB-975-galvanized.jpg 16" Seaside Wall Sconce, 705-Navy, TGG-Heavy Duty Cast Guard, 975-Galvanized, RIB-Ribbed Glass 1000 1000 48865
52460 65083 product 0 64693 A 3 D 0 0 Seaside-Sconce-12in-500-buttery-yellow.jpg 12" Seaside LED Wall Sconce, 500-Buttery Yellow 1000 1000 64693
69556 64276 product 0 81789 A 3 D 0 0 Conoco-swing-arm-10in-plug-in-brass-socket-200-white-gold-white-cloth-cord.jpg Conoco Swing Arm Sconce, 200-White, Brass Socket with Knob Switch, Arm in 200-White, CSGW-Gold & White Cloth Cord, Nostalgic Edison-Style 40W 1910 Era Bulb 1000 1000 81789
69565 64275 product 0 81798 A 3 D 0 0 Gladstone-swing-arm-8in-plug-in-black-socket-700-royal-blue-100-black-standard-white-cord.jpg 8" Gladstone Swing Arm Sconce, 700-Royal Blue, Black Socket with Knob Switch, Arm in 100-Black, SWH-Standard White Cord 1000 1000 81798
29366 64275 product 0 41586 A 4 D 0 0 Gladstone-swing-arm-6in-plug-in-brass-socket-390-teal-standard-black-cord.jpg 6" Gladstone Swing Arm Sconce, 390-Teal, Brass Socket with Knob Switch, Arm in 390-Teal, SBK-Standard Black Cord, Nostalgic Edison-Style 40W 1910 Era Bulb 1000 1000 41586
36633 64723 product 0 48866 A 4 D 0 0 Seaside-Sconce-12in-480-blush-pink.jpg 12" Seaside Wall Sconce, 480-Blush Pink 1000 1000 48866
63821 65083 product 0 76054 A 4 D 0 0 Seaside-Sconce-16in-705-Navy.jpg 16" Seaside LED Wall Sconce, 705-Navy 1000 1000 76054
69557 64276 product 0 81790 A 4 D 0 0 Conoco-swing-arm-10in-plug-in-brass-socket-300-dark-green-white-cloth-cord.jpg Conoco Swing Arm Sconce, 300-Dark Green, Brass Socket with Knob Switch, Arm in 300-Dark Green, CSW-White Cloth Cord, Nostalgic Edison-Style 40W 1910 Era Bulb 1000 1000 81790
29348 64275 product 0 41568 A 5 D 0 0 Gladstone-swing-arm-6in-plug-in-black-socket-100-black-red-white-chevron-cord.jpg 6" Gladstone Swing Arm Sconce, 100-Black, Black Socket with Knob Switch, Arm in 100-Black, CRZ-Red Chevron Cord, Nostalgic Edison-Style 40W 1910 Era Bulb 1000 1000 41568
63816 64723 product 0 76049 A 5 D 0 0 Seaside-Sconce-14in-765-delphite-CGG-FST.jpg 14" Seaside Wall Sconce, 765-Porcelain Delphite, CGG-Standard Cast Guard, FST-Frosted Glass 1000 1000 76049
63820 65083 product 0 76053 A 5 D 0 0 Seaside-Sconce-16in-400-barn-red.jpg 16" Seaside LED Wall Sconce, 400-Barn Red 1000 1000 76053
69558 64276 product 0 81791 A 5 D 0 0 Conoco-swing-arm-10in-plug-in-brass-socket-975-galvanized-gold-white-cloth-cord.jpg Conoco Swing Arm Sconce, 975-Galvanized, Brass Socket with Knob Switch, Arm in 975-Galvanized, CSGW-Gold & White Cloth Cord, Nostalgic Edison-Style 40W 1910 Era Bulb 1000 1000 81791
63815 64723 product 0 76048 A 6 D 0 0 Seaside-Sconce-14in-100-black.jpg 14" Seaside Wall Sconce, 100-Black 1000 1000 76048
63822 65083 product 0 76055 A 6 D 0 0 Seaside-Sconce-16in-765-delphite.jpg 16" Seaside LED Wall Sconce, 765-Porcelain Delphite 1000 1000 76055
65946 65083 product 0 78179 A 6 C 0 0 image001-residential-interior-lighting-bedroom-Seaside-LED-Wall-Sconce-14in-455-Cherry-Red-Flat-Lens.jpg 14" Seaside LED Wall Sconce, 455-Cherry Red, Flat Lens | Photo Courtesy of Nicki Lucenti 2923 2929 78179
65952 65083 product 0 78185 A 6 C 0 0 image__1_-residential-interior-lighting-on-bedroom-Seaside-LED-Wall-Sconce-14in-455-Cherry-Red-Flat-Lens.jpg 14" Seaside LED Wall Sconce, 455-Cherry Red, Flat Lens | Photo Courtesy of Nicki Lucenti 3024 4032 78185
65953 65083 product 0 78186 A 6 C 0 0 image002-residential-interior-lighting-bedroom-Seaside-LED-Wall-Sconce-14in-455-Cherry-Red-Flat-Lens.jpg 14" Seaside LED Wall Sconce, 455-Cherry Red, Flat Lens | Photo Courtesy of Nicki Lucenti 3023 3523 78186
65954 65083 product 0 78187 A 6 C 0 0 image-residential-interior-lighting-on-bedroom-Seaside-LED-Wall-Sconce-14in-455-Cherry-Red-Flat-Lens.jpg 14" Seaside LED Wall Sconce, 455-Cherry Red, Flat Lens | Photo Courtesy of Nicki Lucenti 3006 3265 78187
69567 64275 product 0 81800 A 6 D 0 0 Gladstone-swing-arm-8in-plug-in-brass-socket-300-dark-green-gold-white-cloth-cord.jpg 8" Gladstone Swing Arm Sconce, 300-Dark Green, Brass Socket with Knob Switch, Arm in 300-Dark Green, CSGW-Gold & White Cloth Cord 1000 1000 81800
31984 64275 product 0 44217 A 7 C 0 0 swing_arm_wall_sconces.jpg (2) 8" Gladstone Swing Arm Sconces, 470-Watermelon, 100-Black Arm Finish, CSBW-Black & White Cloth Cord, UK-Black Socket with Knob Switch | Photo Courtesy of Homeowner (Beaufort, South Carolina) 1024 683 44217
63818 64723 product 0 76051 A 7 D 0 0 Seaside-Sconce-16in-705-navy-TGG-RIB-975-galvanized.jpg 16" Seaside Wall Sconce, 705-Navy, TGG-Heavy Duty Cast Guard, RIB-Ribbed Glass, 975-Galvanized 1000 1000 76051
31983 64275 product 0 44216 A 8 C 0 0 bedroom_wall_sconce.jpg 8" Gladstone Swing Arm Sconce, 470-Watermelon, 100-Black Arm Finish, CSBW-Black & White Cloth Cord, UK-Black Socket with Knob Switch | Photo Courtesy of Homeowner (Beaufort, South Carolina) 683 1024 44216
36641 64723 product 0 48874 A 8 C 1 1781 12_Inch_Starfire_Radial_Wave_Reflector_Wall_Sconce_in_200-White.jpg 12" Seaside, 200-White | Photo Courtesy of Emily @handmade.farmhouse, www.handmadefarmhouse.com 956 1434 48874
36642 64723 product 0 48875 A 9 C 0 0 starfire_12_inch_sconce_shade_700_royal_blue.jpg 12" Seaside Wall Sconce, 700-Royal Blue 600 429 48875
62807 64275 product 0 75040 A 9 C 0 0 Farmhouse-Sconce-4-residential-interior-game-room-lighting-gladstone-swing-arm-sconce-PTM-vintage-green-brass-black-paddle-switch-gold-white-cloth-cord.jpg 8" Gladstone Swing Arm Sconce, 310-Vintage Green PTMP, Brass Paddle with Black Paddle Switch, CSGW-Gold & White Cloth Cord | Photo Courtesy of Homeowner 1500 1591 75040
36631 64723 product 0 48864 A 10 C 0 0 seaside-radial-wave-sconce-355-jadite.jpg 12" Seaside Wall Sconce, 355-Porcelain Jadite 600 900 48864
62808 64275 product 0 75041 A 10 C 0 0 Farmhouse-Sconce-1-residential-interior-game-room-lighting-gladstone-swing-arm-sconce-PTM-vintage-green-brass-black-paddle-switch-gold-white-cloth-cord.jpg 8" Gladstone Swing Arm Sconce, 310-Vintage Green PTMP, Brass Paddle with Black Paddle Switch, CSGW-Gold & White Cloth Cord | Photo Courtesy of Homeowner 1500 1928 75041
52555 64723 product 0 64788 A 11 C 0 0 american_made_wall_sconce_lighting__1024x1021_.jpg 12” Shade, 355-Porcelain Jadite 866 869 64788
36630 64723 product 0 48863 A 12 C 0 0 wheeler_seaside_sconce_front_2.jpg 14" Seaside Wall Sconce, 750-Porcelain Cobalt Blue 600 840 48863
36643 64723 product 0 48876 A 13 C 0 0 wall_sconce_exterior_lighting.jpg 14" Seaside Wall Sconce, 490-Magenta 1024 809 48876
58538 64723 product 0 70771 A 14 C 0 0 Seaside_Wall_Sconce_-_Barn_Light_Electric_-_Modern_Nautical_Wall_Sconce.JPG 12” Seaside Wall Sconce, 550-Porcelain Yellow | Photo Courtesy of Homeowner 525 732 70771
66822 64723 product 0 79055 A 15 C 0 0 IMG_7186-residential-interior-lighting-bedroom-Seaside-Wall-Sconce-14in-490-Magenta.jpg 14" Seaside Wall Sconce, 490-Magenta | Photo Courtesy of Brooke Lancaster 3024 3291 79055
58539 64723 product 0 70772 A 16 C 0 0 Seaside_Wall_Sconce_-_Barn_Light_Electric_-_Modern_Nautical_Wall_Sconce_Lighting.JPG 12” Seaside Wall Sconce, 550-Porcelain Yellow | Photo Courtesy of Homeowner 598 855 70772
61457 64723 product 0 73690 A 17 C 0 0 Seaside_Wall_Sonce_-_750_Cobalt_Blue_Barn_Light_Electric_-_Exterior_Garden_Lighting.jpg 14” Seaside Wall Sconce, 750-Cobalt Blue | Photo Courtesy of Homeowner 1500 2250 73690
62126 64723 product 0 74359 A 18 C 0 0 Seaside_Wall_Sconce_14in_500-ButteryYellow_2e8m-xs.jpg 14" Seaside Wall Sconce, 500-Buttery Yellow | Courtesy of Jane Coslick Designs 1500 1570 74359
60273 64723 product 0 72506 A 19 C 0 0 Seaside_Wall_Sconce_-_355_Jadite_Barn_Light_Electric_-_Exterior_Lighting.jpg 12” Seaside Wall Sconce, 355-Jadite | Photo Courtesy of Homeowner 1500 1840 72506
62127 64723 product 0 74360 A 20 C 0 0 Seaside_Wall_Sconce_14in_500-ButteryYellow.jpg 14" Seaside Wall Sconce, 500-Buttery Yellow | Courtesy of Jane Coslick Designs 1500 2025 74360