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 (
    65861, 65888, 65956, 65838, 65890, 65889, 
    65836, 65891, 65964
  ) 
ORDER BY 
  cscart_images_links.position, 
  cscart_images_links.pair_id

Query time 0.00091

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": 75,
          "filtered": 100,
          "index_condition": "cscart_images_links.object_type = 'product' and cscart_images_links.`type` = 'A' and cscart_images_links.object_id in (65861,65888,65956,65838,65890,65889,65836,65891,65964)"
        }
      }
    },
    "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
70167 65861 product 0 82400 A 0 D 0 0 LED-bulbs-G40-Double-Layer-Spiral-250-Lumens-2000K-off-GreenCreative.jpg LED Double Layer G40 250 Lumen Bulb - Off 1000 1000 82400
72726 65838 product 0 84959 A 0 D 0 0 Ellington-LED-pendant-cord-16in-975-galvanized-creme-cloth-cord.jpg 16" Cassidy LED Globe Pendant, 975-Galvanized, Creme Cloth Cord 1000 1000 84959
72728 65888 product 0 84961 A 0 D 0 0 Ellington-LED-pendant-studio-12in-607-taupe-standard-white-cord.jpg 12" Cassidy LED Globe Studio Pendant, 607-Taupe, Standard White Cord 1000 1000 84961
72735 65889 product 0 84968 A 0 D 0 0 Ellington-LED-pendant-chain-12in-100-black-barn-red-swirl-cord.jpg 12" Cassidy LED Globe Chain Pendant, 100-Black, Barn Red & Black Swirl Cloth Cord 1000 1000 84968
72736 65889 product 0 84969 A 0 D 0 0 Ellington-LED-pendant-chain-16in-975-Galvanized-silver-cloth-cord.jpg 16" Cassidy LED Globe Chain Pendant, 975-Galvanized, Silver Cloth Cord 1000 1000 84969
72737 65889 product 0 84970 A 0 D 0 0 Ellington-LED-pendant-chain-12in-607-taupe-creme-cloth-cord.jpg 12" Cassidy LED Globe Chain Pendant, 607-Taupe, Creme Cloth Cord 1000 1000 84970
72738 65889 product 0 84971 A 0 D 0 0 Ellington-LED-pendant-chain-16in-206-matte-white-rust-cloth-cord.jpg 16" Cassidy LED Globe Chain Pendant, 206-Matte White, Rust Cloth Cord 1000 1000 84971
72743 65890 product 0 84976 A 0 D 0 0 Ellington-LED-pendant-stem-12in-607-Taupe.jpg 12" Cassidy LED Globe Stem Pendant, 607-Taupe 1000 1000 84976
72780 65891 product 0 85013 A 0 D 0 0 Ellington-LED-pendant-flush-12in-607-taupe.jpg 12" Cassidy LED Globe Flush Mount Light, 607-Taupe 1000 1000 85013
72781 65891 product 0 85014 A 0 D 0 0 Ellington-LED-pendant-flush-16in-206-matte-white.jpg 16" Cassidy LED Globe Flush Mount Light, 206-Matte White 1000 1000 85014
72782 65891 product 0 85015 A 0 D 0 0 Ellington-LED-pendant-flush-12in-100-black.jpg 12" Cassidy LED Globe Flush Mount Light 1000 1000 85015
72783 65891 product 0 85016 A 0 D 0 0 Ellington-LED-pendant-flush-16in-975-galvanized.jpg 16" Cassidy LED Globe Flush Mount Light, 975-Galvanized 1000 1000 85016
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
73902 65956 product 0 86135 A 0 D 0 0 carver-flush-mount-12in-630-beige-maple-wood.jpg 12" Carver LED Wooden Diffuser Flush Mount, 630-Beige, Maple Wood Diffuser 1000 1000 86135
74215 65964 product 0 86448 A 0 D 0 0 isos-studio-pendant-12in-206-matte-white-standard-white-cord-ash-wood_rjkh-6g.jpg 12" Isos LED Cone Studio Pendant Light, 206-Matte White, Optional Wood Top, Ash Wood, Standard White Cord 1000 1000 86448
74216 65964 product 0 86449 A 0 D 0 0 isos-studio-pendant-32in-605-textured-rust-rust-cloth-cord_oeus-7r.jpg 32" Isos LED Cone Studio Pendant Light, 605-Textured Rust, Rust Cloth Cord 1000 1000 86449
74217 65964 product 0 86450 A 0 D 0 0 isos-studio-pendant-24in-390-teal-standard-black-cord-walnut_t0zw-jh.jpg 24" Isos LED Cone Studio Pendant Light, 390-Teal, Optional Wood Top, Walnut Wood, Standard Black Cord 1000 1000 86450
74218 65964 product 0 86451 A 0 D 0 0 isos-studio-pendant-12in-607-taupe-standard-black-cord_og49-94.jpg 12" Isos LED Cone Studio Pendant Light, 607-Taupe, Standard Black Cord 1000 1000 86451
74219 65964 product 0 86452 A 0 D 0 0 isos-studio-pendant-32in-300-dark-green-emerald-green-cloth-cord_aw5w-2p.jpg 32" Isos LED Cone Studio Pendant Light, 300-Dark Green, Emerald Green Cloth Cord 1000 1000 86452
74220 65964 product 0 86453 A 0 D 0 0 isos-studio-pendant-24in-615-oil-rubbed-bronze-rust-cloth-cord-maple-wood_hyco-so.jpg 24" Isos LED Cone Studio Pendant Light, 615-Oil-Rubbed Bronze, Optional Wood Top, Maple Wood, Rust Cloth Cord 1000 1000 86453
74221 65964 product 0 86454 A 0 D 0 0 isos-studio-pendant-12in-975-galvanized-standard-black-cord_yr4u-u7.jpg 12" Isos LED Cone Studio Pendant Light, 975-Galvanized, Standard Black Cord 1000 1000 86454
74222 65964 product 0 86455 A 0 D 0 0 isos-studio-pendant-24in-320-fern-green-fern-green-cloth-cord_hzbi-65.jpg 24" Isos LED Cone Studio Pendant Light, 320-Fern Green, Fern Green Chevron Cloth Cord 1000 1000 86455
74223 65964 product 0 86456 A 0 D 0 0 adjustable.jpg 1000 1000 86456
74224 65964 product 0 86457 A 0 D 0 0 FSC-stustainable-hardwoods_th56-dt.jpg 1000 1000 86457
74225 65964 product 0 86458 A 0 C 0 0 5izEn-YcRbI-commercial-interior-restaurant-isos-studio-pendant-100-black-32in-12in-crop.jpg 12" and 32" Isos, 100-Black, Standard Black Cord 1000 1000 86458
74226 65964 product 0 86459 A 0 C 0 0 2181919-commercial-interior-classroom-isos-studio-pendant-24in-705-navy-standard-white-cord-crop.jpg 24" Isos, 705-Navy, Standard White Cord 1000 1000 86459
74227 65964 product 0 86460 A 0 C 0 0 904099468-residential-interior-dining-room-table-isos-32in-100-black-maple-wood-studio-pendant-standard-black-cord-crop_y9tj-ek.jpg 32" Isos, 100-Black, Optional Wood Top, Maple Wood, Standard Black Cord 1000 1000 86460
74228 65964 product 0 86461 A 0 C 0 0 1007074880-residential-interior-bedroom-isos-studio-pendant-12in-crop.jpg 12" Isos, 605-Textured Rust, Standard Black Cord 1000 1000 86461
72720 65838 product 0 84953 A 1 D 0 0 Ellington-LED-pendant-cord-12in-100-black-standard-black-cord.jpg 12" Cassidy LED Globe Pendant, 100-Black, Standard Black Cord 1000 1000 84953
72727 65888 product 0 84960 A 1 D 0 0 Ellington-LED-pendant-studio-12in-100-black-black-cloth-cord.jpg 12" Cassidy LED Globe Studio Pendant, 100-Black, Black Cloth Cord 1000 1000 84960
72794 65890 product 0 85027 A 1 D 0 0 Ellington-LED-pendant-stem-16in-206-matte-white.jpg 16" Cassidy LED Globe Stem Pendant, 206-Matte White 1000 1000 85027
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
73903 65956 product 0 86136 A 1 D 0 0 carver-flush-mount-16in-300-dark-green-oak-wood.jpg 16" Carver LED Wooden Diffuser Flush Mount, 300-Dark Green, Oak Wood Diffuser 1000 1000 86136
72725 65838 product 0 84958 A 2 D 0 0 Ellington-LED-pendant-cord-16in-815-light-grey-rust-cloth-cord.jpg 16" Cassidy LED Globe Pendant, 815-Light Grey, Rust Cloth Cord 1000 1000 84958
72730 65888 product 0 84963 A 2 D 0 0 Ellington-LED-pendant-studio-16in-630-beige-rust-cloth-cord.jpg 16" Cassidy LED Globe Studio Pendant, 630-Beige, Rust Cloth Cord 1000 1000 84963
72746 65890 product 0 84979 A 2 D 0 0 Ellington-LED-pendant-stem-630-beige.jpg 16" Cassidy LED Globe Stem Pendant, 630-Beige 1000 1000 84979
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
73904 65956 product 0 86137 A 2 D 0 0 carver-flush-mount-16in-996-weathered-copper-oak-wood.jpg 16" Carver LED Wooden Diffuser Flush Mount, 996-Natural Weathered Copper, Oak Wood Diffuser 1000 1000 86137
72721 65838 product 0 84954 A 3 D 0 0 Ellington-LED-pendant-cord-12in-300-dark-green-emerald-green-cloth-cord.jpg 12" Cassidy LED Globe Pendant, 300-Dark Green, Emerald Green Cloth Cord 1000 1000 84954
72729 65888 product 0 84962 A 3 D 0 0 Ellington-LED-pendant-studio-16in-206-matte-white-creme-cloth-cord.jpg 16" Cassidy LED Globe Studio Pendant, 206-Matte White, Creme Cloth Cord 1000 1000 84962
72744 65890 product 0 84977 A 3 D 0 0 Ellington-LED-pendant-stem-16in-975-Galvanized.jpg 16" Cassidy LED Globe Stem Pendant, 975-Galvanized 1000 1000 84977
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
73905 65956 product 0 86138 A 3 D 0 0 carver-sconce-12in-100-black-walnut-wood_874s-2c.jpg 12" Carver LED Wooden Diffuser Flush Mount, 100-Black, Walnut Wood Diffuser 1000 1000 86138
72724 65838 product 0 84957 A 4 D 0 0 Ellington-LED-pendant-cord-16in-630-beige-black-cloth-cord.jpg 16" Cassidy LED Globe Pendant, 630-Beige, Black Cloth Cord 1000 1000 84957
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
73906 65956 product 0 86139 A 4 D 0 0 carver-flush-mount-12in-320-fern-green-oak-wood.jpg 12" Carver LED Wooden Diffuser Flush Mount, 320-Fern Green, Ash Wood Diffuser 1000 1000 86139
72722 65838 product 0 84955 A 5 D 0 0 Ellington-LED-pendant-cord-12in-380-chartreuse-standard-white-cord.jpg 12" Cassidy LED Globe Pendant, 380-Chartreuse, Standard White Cord, Mounting in 200-White 1000 1000 84955
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
73907 65956 product 0 86140 A 5 D 0 0 carver-sconce-12in-607-taupe-oak-wood_sb9z-sm.jpg 12" Carver LED Wooden Diffuser Flush Mount, 607-Taupe, Oak Wood Diffuser 1000 1000 86140
72723 65838 product 0 84956 A 6 D 0 0 Ellington-LED-pendant-cord-16in-206-matte-white-standard-white-cord.jpg 16" Cassidy LED Globe Pendant, 206-Matte White, Standard White Cord 1000 1000 84956
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
73908 65956 product 0 86141 A 6 D 0 0 carver-sconce-16in-430-soft-clay-maple-wood_qkhq-vo.jpg 16" Carver LED Wooden Diffuser Flush Mount, 430-Soft Clay, Maple Wood Diffuser 1000 1000 86141
72790 65838 product 0 85023 A 7 C 0 0 ellington-LED-pendant-cord-insetting-globe-700-navy-black-cloth-cord-on.jpg 16" Cassidy LED Globe Cord Pendant, 705-Navy, Black Cloth Cord 1000 1000 85023
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
73909 65956 product 0 86142 A 7 D 0 0 carver-sconce-16in-605-textured-rust-walnut-wood_qqzy-85.jpg 16" Carver LED Wooden Diffuser Flush Mount, 605-Textured Rust, Walnut Wood Diffuser 1000 1000 86142
72791 65838 product 0 85024 A 8 C 0 0 ellington-LED-pendant-cord-insetting-630-beige-rust-cloth-cord-on.jpg 12" Cassidy LED Globe Cord Pendant, 630-Beige, Rust Cloth Cord 1000 1000 85024
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
73910 65956 product 0 86143 A 8 D 0 0 carver-flush-mount-16in-975-galvanized-maple-wood.jpg 16" Carver LED Wooden Diffuser Flush Mount, 975-Galvanized, Oak Wood Diffuser 1000 1000 86143
72792 65838 product 0 85025 A 9 C 0 0 Ellington-LED-pendant-cord-On.jpg 16" Cassidy LED Globe Cord Pendants, 200-White and 100-Black 1000 1000 85025
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
73911 65956 product 0 86144 A 9 D 0 0 carver-flush-mount-16in-999-oil-rubbed-copper-walnut-wood.jpg 16" Carver LED Wooden Diffuser Flush Mount, 999-Natural Oil-Rubbed Copper, Walnut Wood Diffuser 1000 1000 86144
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
73912 65956 product 0 86145 A 10 D 0 0 carver-flush-mount-20in-200-white-walnut-wood.jpg 20" Carver LED Wooden Diffuser Flush Mount, 200-White, Walnut Wood Diffuser 1000 1000 86145
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
73922 65956 product 0 86155 A 11 D 0 0 FSC-stustainable-hardwoods_gwbf-j6.jpg 960 960 86155
73919 65956 product 0 86152 A 12 C 0 0 WQCkior21Gc-residential-interior-living-room-lounge-carver-flush-mount-20in-200-white-oak-wood-square.jpg 20" Carver LED Wooden Diffuser Flush Mount, 200-White, Oak Wood Diffuser 1000 1000 86152
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
73920 65956 product 0 86153 A 13 C 0 0 Storm-Coniaris-residential-interior-hallway-carver-flush-mount-16in-997-raw-brass-ash-wood-square.jpg 16" Carver LED Wooden Diffuser Flush Mount, 997-Natural Raw Brass, Ash Wood Diffuser 1000 1000 86153
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