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 (
    65082, 65503, 65087, 65501, 65500, 65502, 
    65938, 65884, 65836
  ) 
ORDER BY 
  cscart_images_links.position, 
  cscart_images_links.pair_id

Query time 0.00128

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": 79,
          "filtered": 100,
          "index_condition": "cscart_images_links.object_type = 'product' and cscart_images_links.`type` = 'A' and cscart_images_links.object_id in (65082,65503,65087,65501,65500,65502,65938,65884,65836)"
        }
      }
    },
    "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
59498 65501 product 0 71731 A 0 D 0 0 acorn-schoolhouse-sconce-Teal_0s5t-pn.jpg Acorn LED Schoolhouse Sconce, 390-Teal, Opaque Glass, Three Painted Band 1000 1000 71731
59523 65502 product 0 71756 A 0 D 0 0 Drum-schoolhouse-sconce-Buttery-Yellow_76ew-pu.jpg Drum LED Schoolhouse Sconce, 500-Buttery Yellow, Opaque Glass, Four Painted Band 1000 1000 71756
59530 65503 product 0 71763 A 0 D 0 0 0-Globe-schoolhouse-sconce-Oil-Rubbed-alt_4vwx-zi.jpg Round LED Schoolhouse Sconce, 615-Oil-Rubbed Bronze, Opaque Glass 1000 1000 71763
59533 65503 product 0 71766 A 0 D 0 0 0-Globe-schoolhouse-sconce-Barn-Red-alt_o53j-bc.jpg Round LED Schoolhouse Sconce, 400-Barn Red, Opaque Glass, Four Painted Band 1000 1000 71766
59535 65503 product 0 71768 A 0 D 0 0 0-Globe-schoolhouse-sconce-Black-alt_gso6-y1.jpg Round LED Schoolhouse Sconce, 100-Black, Opaque Glass, Three Painted Band 1000 1000 71768
63615 65082 product 0 75848 A 0 D 0 0 Esso-LED-Sconce-480-blush-pink.jpg 10" Esso LED, 480-Blush Pink 1000 1000 75848
63655 65500 product 0 75888 A 0 D 0 0 schoolhouse-primary-LED-sconce-large-opaque-glass-700-royal-blue-single-painted-band.jpg Primary LED Schoolhouse Sconce, 700-Royal Blue, Large Opaque Glass, Single Painted Band 1000 1000 75888
72013 65884 product 0 84246 A 0 D 0 0 Duo-Loma-sconce-LED-10in-100-Black-200-white-maple-wood-ring.jpg Duo LED Sconce, Top in 100-Black, Bottom in 200-White, Maple Wood Ring, Mounting in 100-Black 1000 1000 84246
72015 65884 product 0 84248 A 0 D 0 0 Duo-Loma-sconce-LED-10in-995-raw-copper-630-Beige_u5yu-77_3whs-go.jpg Duo LED Wall Sconce, Top in 995-Natural Raw Copper, Bottom in 630-Beige, Bottom Interior in 995-Natural Raw Copper, Mounting in 630-Beige 1000 1000 84248
73593 65938 product 0 85826 A 0 D 0 0 Suora-linear-sconce-13in-walnut-100-black.jpg 13" Suora, Walnut Wood, Mounting in 100-Black 1000 1000 85826
73892 65836 product 0 86125 A 0 D 0 0 carver-sconce-16in-430-soft-clay-maple-wood.jpg 16" Carver LED Wooden Diffuser Light, 430-Soft Clay, Maple Wood Diffuser 1000 1000 86125
52458 65082 product 0 64691 A 1 D 0 0 Esso-LED-Sconce-100-black.jpg 10" Esso LED, 100-Black 1000 1000 64691
59499 65501 product 0 71732 A 1 D 0 0 acorn-schoolhouse-sconce-Lavender-clear_noj5-2v.jpg Acorn LED Schoolhouse Sconce, 790-Lavender, Opaque Glass 1000 1000 71732
59518 65502 product 0 71751 A 1 D 0 0 Drum-schoolhouse-sconce-Galvanized_jchx-o5.jpg Drum LED Schoolhouse Sconce, 975-Galvanized, Opaque Glass 1000 1000 71751
63654 65500 product 0 75887 A 1 D 0 0 schoolhouse-primary-LED-sconce-small-clear-glass-615-oil-rubbed-bronze.jpg Primary LED Schoolhouse Sconce, 615-Oil-Rubbed Bronze, Small Clear Glass 1000 1000 75887
64812 65087 product 0 77045 A 1 D 0 0 Chestnut-Wall-Sconce-12in-800-industrial-grey.jpg 12" Chestnut LED Sconce, 800-Industrial Grey 1000 1000 77045
72029 65884 product 0 84262 A 1 D 0 0 Duo-Loma-sconce-LED-10in-320-fern-green-997-raw-brass_d8jg-ph.jpg Duo LED Wall Sconce, 320-Fern Green, Bottom Interior in 997-Natural Raw Brass, Mounting in 320-Fern Green 1000 1000 84262
73596 65938 product 0 85829 A 1 D 0 0 Suora-linear-sconce-24in-oak-206-matte-white.jpg 24" Suora, Oak Wood, Mounting in 206-Matte White 1000 1000 85829
73887 65836 product 0 86120 A 1 D 0 0 carver-flush-mount-16in-300-dark-green-oak-wood_copy.jpg 16" Carver LED Wooden Diffuser Light, 300-Dark Green, Oak Wood Diffuser 1000 1000 86120
59521 65502 product 0 71754 A 2 D 0 0 Drum-schoolhouse-sconce-Jadite_rtu6-1w.jpg Drum LED Schoolhouse Sconce, 370-Mint, Opaque Glass, Four Painted Band 1000 1000 71754
60010 65501 product 0 72243 A 2 D 0 0 acorn-schoolhouse-sconce-Buttery-Yellow-Black_54jj-4z_6yic-8n.jpg Acorn LED Schoolhouse Sconce, 500-Buttery Yellow, Opaque Glass, Three Painted Band, 100-Black 1000 1000 72243
63656 65500 product 0 75889 A 2 D 0 0 schoolhouse-primary-LED-sconce-large-opaque-glass-500-buttery-yellow-100-black-double-painted-band.jpg Primary LED Schoolhouse Sconce, 500-Buttery Yellow, Double Painted Band, 100-Black 1000 1000 75889
64816 65087 product 0 77049 A 2 D 0 0 Chestnut-Wall-Sconce-16in-100-black-WC.jpg 16" Chestnut LED Sconce, 100-Black, Wire Cage 1000 1000 77049
71048 65082 product 0 83281 A 2 D 0 0 Esso-LED-Wall-Sconce-8inch-Soft-Clay.jpg 8" Esso LED, 430-Soft Clay 1000 1000 83281
73592 65938 product 0 85825 A 2 D 0 0 Suora-linear-sconce-13in-maple-630-beige.jpg 13" Suora, Maple Wood, Mounting in 630-Beige 1000 1000 85825
73896 65836 product 0 86129 A 2 D 0 0 carver-sconce-20in-200-white-walnut-wood.jpg 20" Carver LED Wooden Diffuser Light, 200-White, Walnut Wood Diffuser 1000 1000 86129
59503 65501 product 0 71736 A 3 D 0 0 acorn-schoolhouse-sconce-Barn-Red_gw4c-s2.jpg Acorn LED Schoolhouse Sconce, 400-Barn Red, Opaque Glass, Five Painted Band 1000 1000 71736
59524 65502 product 0 71757 A 3 D 0 0 Drum-schoolhouse-sconce-Barn-Red_53u9-l1.jpg Drum LED Schoolhouse Sconce, 400-Barn Red, Opaque Glass, Seven Painted Band 1000 1000 71757
60009 65500 product 0 72242 A 3 D 0 0 schoolhouse-primary-LED-sconce-small-clear-glass-705-navy-single-painted-band.jpg Primary LED Schoolhouse Sconce, 705-Navy, Small Clear Glass, Single Painted Band 1000 1000 72242
63617 65082 product 0 75850 A 3 D 0 0 Esso-LED-Sconce-765-delphite.jpg 10" Esso LED, 765-Porcelain Delphite 1000 1000 75850
72019 65884 product 0 84252 A 3 D 0 0 Duo-Loma-sconce-LED-10in-975-galvanized.jpg Duo LED Sconce, 975-Galvanized, Ash Wood Ring 1000 1000 84252
73595 65938 product 0 85828 A 3 D 0 0 Suora-linear-sconce-24in-maple-430-soft-clay.jpg 24" Suora, Maple Wood, Mounting in 430-Soft Clay 1000 1000 85828
73888 65836 product 0 86121 A 3 D 0 0 carver-flush-mount-16in-996-weathered-copper-oak-wood_copy.jpg 16" Carver LED Wooden Diffuser Light, 996-Natural Weathered Copper, Oak Wood Diffuser 1000 1000 86121
59508 65501 product 0 71741 A 4 D 0 0 acorn-schoolhouse-sconce-Jadite_bybi-eh.jpg Acorn LED Schoolhouse Sconce, 370-Mint, Opaque Glass, Five Painted Band 1000 1000 71741
60043 65502 product 0 72276 A 4 C 0 0 Drum_LED_Schoolhouse_Sconce_-_Barn_Light_Electric_Cafe_Restaurant_Lighting.jpeg Drum LED Schoolhouse Sconce, Opaque Glass, 105-Textured Black, Single Painted Band in 100-Black 1889 2361 72276
63658 65500 product 0 75891 A 4 D 0 0 schoolhouse-primary-LED-sconce-large-clear-glass-307-emerald-green.jpg Primary LED Schoolhouse Sconce, 307-Emerald Green, Large Clear Glass 1000 1000 75891
64817 65087 product 0 77050 A 4 D 0 0 Chestnut-Wall-Sconce-16in-975-galvanized_5rck-dr.jpg 16" Chestnut LED Sconce, 975-Galvanized 1000 1000 77050
71047 65082 product 0 83280 A 4 D 0 0 Esso-LED-Sconce-307-emerald-green.jpg 10" Esso LED, 307-Emerald Green 1000 1000 83280
72014 65884 product 0 84247 A 4 D 0 0 Duo-Loma-sconce-LED-10in-997-raw-brass-300-dark-green.jpg Duo LED Sconce, Top in 997-Natural Raw Brass, Bottom in 300-Dark Green, Bottom Interior in 997-Natural Raw Brass, Mounting in 300-Dark Green 1000 1000 84247
73598 65938 product 0 85831 A 4 D 0 0 Suora-linear-sconce-35in-walnut-600-bronze.jpg 35" Suora, Walnut Wood, Mounting in 600-Bronze 1000 1000 85831
73894 65836 product 0 86127 A 4 D 0 0 carver-sconce-16in-975-galvanized-oak-wood.jpg 16" Carver LED Wooden Diffuser Light, 975-Galvanized, Oak Wood Diffuser 1000 1000 86127
52486 65087 product 0 64719 A 5 D 0 0 Chestnut-Wall-Sconce-12in-200-white.jpg 12" Chestnut LED Sconce, 200-White 1000 1000 64719
59484 65500 product 0 71717 A 5 D 0 0 schoolhouse-primary-LED-sconce-small-opaque-glass-200-white-715-delphite-double-painted-band.jpg Primary LED Schoolhouse Sconce, 200-White, Small Opaque Glass, Double Painted Band, 715-Delphite 1000 1000 71717
59510 65501 product 0 71743 A 5 D 0 0 acorn-schoolhouse-sconce-Royal-Blue_k22w-l4.jpg Acorn LED Schoolhouse Sconce, 700-Royal Blue, Clear Glass, Three Painted Band 1000 1000 71743
63614 65082 product 0 75847 A 5 D 0 0 Esso-LED-Sconce-400-barn-red.jpg 10" Esso LED, 400-Barn Red 1000 1000 75847
72018 65884 product 0 84251 A 5 D 0 0 Duo-Loma-sconce-LED-10in-815-light-grey-607-taupe-walnut-wood-ring.jpg Duo LED Sconce, Top in 815-Light Grey, Bottom in 607-Taupe, Walnut Wood Ring, Mounting in 607-Taupe 1000 1000 84251
73594 65938 product 0 85827 A 5 D 0 0 Suora-linear-sconce-24in-ash-975-galvanized.jpg 24" Suora, Ash Wood, Mounting in 975-Galvanized 1000 1000 85827
73886 65836 product 0 86119 A 5 D 0 0 carver-flush-mount-12in-630-beige-maple-wood_copy.jpg 12" Carver LED Wooden Diffuser Light, 630-Beige, Maple Wood Diffuser 1000 1000 86119
63618 65082 product 0 75851 A 6 D 0 0 Esso-LED-Sconce-975-Galvanized.jpg 10" Esso LED, 975-Galvanized 1000 1000 75851
63657 65500 product 0 75890 A 6 D 0 0 schoolhouse-primary-LED-sconce-large-clear-glass-805-charcoal-granite-200-white-triple-painted-band.jpg Primary LED Schoolhouse Sconce, 805-Charcoal Granite, Large Clear Glass, Triple Painted Band, 200-White 1000 1000 75890
68735 65501 product 0 80968 A 6 C 0 0 IMG_1593-residential-interior-lighting-living-Acorn-LED-Schoolhouse-Sconce-Clear-Glass-106-Matte-Black.jpg Acorn LED Schoolhouse Sconce, 106-Matte Black, Clear Glass | Photo Courtesy of Customer 1471 1961 80968
72017 65884 product 0 84250 A 6 D 0 0 Duo-Loma-sconce-LED-10in-200-white-ash-wood-ring.jpg Duo LED Sconce, 200-White, Ash Wood Ring 1000 1000 84250
73597 65938 product 0 85830 A 6 D 0 0 Suora-linear-sconce-35in-oak-997-raw-brass.jpg 35" Suora, Oak Wood, Mounting in 997-Natural Raw Brass 1000 1000 85830
73889 65836 product 0 86122 A 6 D 0 0 carver-sconce-12in-100-black-walnut-wood.jpg 12" Carver LED Wooden Diffuser Light, 100-Black, Walnut Wood Diffuser 1000 1000 86122
52456 65082 product 0 64689 A 7 D 0 0 Esso-LED-Sconce-365-jadite.jpg 10" Esso LED, 355-Porcelain Jadite 1000 1000 64689
68734 65501 product 0 80967 A 7 C 0 0 IMG_1592-residential-interior-lighting-living-Acorn-LED-Schoolhouse-Sconce-Clear-Glass-106-Matte-Black.jpg Acorn LED Schoolhouse Sconce, 106-Matte Black, Clear Glass | Photo Courtesy of Customer 1014 993 80967
73641 65938 product 0 85874 A 7 D 0 0 FSC-stustainable-hardwoods.jpg 1000 1000 85874
73890 65836 product 0 86123 A 7 D 0 0 carver-sconce-12in-320-fern-green-ash-wood.jpg 12" Carver LED Wooden Diffuser Light, 320-Fern Green, Ash Wood Diffuser 1000 1000 86123
63616 65082 product 0 75849 A 8 D 0 0 Esso-LED-Sconce-705-navy.jpg 10" Esso LED, 705-Navy 1000 1000 75849
68736 65501 product 0 80969 A 8 C 0 0 IMG_1594-residential-interior-lighting-living-Acorn-LED-Schoolhouse-Sconce-Clear-Glass-106-Matte-Black.jpg Acorn LED Schoolhouse Sconce, 106-Matte Black, Clear Glass | Photo Courtesy of Customer 1461 1947 80969
73599 65938 product 0 85832 A 8 C 0 0 1348940443-commercial-interior-hotel-lobby-Suora-linear-sconce-oak-wood-997-raw-brass-on-square.jpg 24" Suora, Oak Wood, Mounting in 997-Natural Raw Brass 1000 1000 85832
73895 65836 product 0 86128 A 8 D 0 0 carver-sconce-16in-999-oil-rubbed-copper-walnut-wood.jpg 16" Carver LED Wooden Diffuser Light, 999-Natural Oil-Rubbed Copper, Walnut Wood Diffuser 1000 1000 86128
63701 65082 product 0 75934 A 9 C 0 0 Image__1_-residential-exterior-deck-lighting-rain-Esso-LED-Wall-Sconce-765-Delphite-Blue-Flat-Lens.jpeg 10" Esso LED, 765-Delphite Blue 1816 2420 75934
68737 65501 product 0 80970 A 9 C 0 0 IMG_1591-residential-interior-lighting-living-Acorn-LED-Schoolhouse-Sconce-Clear-Glass-106-Matte-Black.jpg Acorn LED Schoolhouse Sconce, 106-Matte Black, Clear Glass | Photo Courtesy of Customer 1500 2000 80970
73601 65938 product 0 85834 A 9 C 0 0 651362943-Suora-linear-sconce-35in-walnut-wood-997-raw-brass-square.jpg 35" Suora, Walnut Wood, Mounting in 997-Natural Raw Brass 1000 1000 85834
73897 65836 product 0 86130 A 9 D 0 0 carver-sconce-20in-805-charcoal-granite-ash-wood.jpg 20" Carver LED Wooden Diffuser Light, 805-Charcoal Granite, Ash Wood Diffuser 1000 1000 86130
63702 65082 product 0 75935 A 10 C 0 0 Image__2_-residential-exterior-deck-lighting-rain-Esso-LED-Wall-Sconce-765-Delphite-Blue-Flat-Lens.jpeg 10" Esso LED, 765-Delphite Blue 1816 2420 75935
73600 65938 product 0 85833 A 10 C 0 0 652162434-residential-living-room-Suora-linear-adjustable-sconce-13in-walnut-wood-600-bronze-on-square.jpg 13" Suora, Walnut Wood, Mounting in 600-Bronze 1000 1000 85833
73891 65836 product 0 86124 A 10 D 0 0 carver-sconce-12in-607-taupe-oak-wood.jpg 12" Carver LED Wood Diffuser Light, 607-Taupe, Oak Wood Diffuser 1000 1000 86124
63703 65082 product 0 75936 A 11 C 0 0 Image-residential-exterior-deck-lighting-rain-Esso-LED-Wall-Sconce-765-Delphite-Blue-Flat-Lens.jpeg 10" Esso LED, 765-Delphite Blue 1816 2420 75936
73893 65836 product 0 86126 A 11 D 0 0 carver-sconce-16in-605-textured-rust-walnut-wood.jpg 16" Carver LED Wooden Diffuser Light, 605-Textured Rust, Walnut Wood Diffuser 1000 1000 86126
73921 65836 product 0 86154 A 12 D 0 0 FSC-stustainable-hardwoods.jpg 960 960 86154
73900 65836 product 0 86133 A 13 C 0 0 1089897426-commerical-residential-living-room-lounge-carver-wall-sconce-20in-430-soft-clay-walnut-wood-sqaure.jpg 20" Carver LED Wooden Diffuser Light, 430-Soft Clay, Walnut Wood Diffuser 1000 1000 86133
73898 65836 product 0 86131 A 14 C 0 0 605695818-carver-sconce-20in-16in-12in-200-white-100-black-oak-wood-residential-interior-mudroom-entryway-square.jpg 12", 16" and 20" Carver LED Wooden Diffuser Light, 200-White and 100-Black, Oak Wood Diffusers 1000 1000 86131
73899 65836 product 0 86132 A 15 C 0 0 629541061-residential-interior-living-room-carver-sconce-20in-16in-12in-996-weathered-copper-oak-wood-square.jpg 12", 16" and 20" Carver LED Wooden Diffuser Light, 996-Natural Weathered Copper, Oak Wood Diffusers 1000 1000 86132
73901 65836 product 0 86134 A 16 C 0 0 H17rssr4-commercial-interior-restaurant-carver-wall-sconce-20in-12in-800-industrial-grey-maple-wood-square.jpg 12" and 20" Carver LED Wooden Diffuser Light, 800-Industrial Grey, Maple Wood Diffuser 1000 1000 86134
73923 65836 product 0 86156 A 16 D 0 0 4M5A1948-carver-sconce-16in-weathered-copper-ash-wood.jpg 16" Carver, 996-Natural Weathered Copper, Ash Wood Diffuser 1000 1000 86156
73924 65836 product 0 86157 A 16 D 0 0 Carver-sconce-16in-997-raw-brass-ash-wood-on.jpg 16" Carver, 997-Natural Raw Brass, Ash Wood Diffuser 1000 1000 86157
73925 65836 product 0 86158 A 16 D 0 0 Carver-cluster.jpg 1000 1000 86158