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 (65104, 64866, 64867, 64868) 
ORDER BY 
  cscart_images_links.position, 
  cscart_images_links.pair_id

Query time 0.00100

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": 58,
          "filtered": 100,
          "index_condition": "cscart_images_links.object_type = 'product' and cscart_images_links.`type` = 'A' and cscart_images_links.object_id in (65104,64866,64867,64868)"
        }
      }
    },
    "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
48968 64868 product 0 61201 A 0 D 0 0 Timber-Ore-Ventura-Wooden-Shade-Ash-Brown-Twist-Cord-Porcelain-II-Tala-Bulb.jpg Ventura Wooden Shade Pendant, Ash Wood, Black Socket, TBR-Brown Twist Cord, Shown with Porcelain II Tala Lamp 1000 1000 61201
49010 64866 product 0 61243 A 0 D 0 0 Timber-Ore-Wilcox-Uplight-Wooden-Top-Pendant-Walnut-Barn-Red-Red-White-Chevron-Cord.jpg 18" Shade in 400-Barn Red, Walnut Wood, CRZ-Red Chevron Cord 1000 1000 61243
49013 64867 product 0 61246 A 0 D 0 0 Timber-Ore-Marathon-Wooden-Shade-Ash-Delphite-Putty-Twist-Cord.jpg 14" Shade in 765-Porcelain Delphite Blue, Ash Wood, TPT-Putty Twist Cord 1000 1000 61246
60148 65104 product 0 72381 A 0 D 0 0 Brunson-100-Black-Wood-Ash-Cord-CSBW-Black-White-Cloth.jpg Brunson Wooden Top Pendant, 100-Black, Ash Wood, CSBW-Black & White Cloth Cord 1000 1000 72381
60150 65104 product 0 72383 A 0 D 0 0 Brunson-997-Raw-Brass-Wood-Walnut-Cord-CSGW-Gold-White-Cloth.jpg Brunson Wooden Top Pendant, 997-Natural Raw Brass, Walnut Wood, CSGW-Gold & White Cloth Cord 1000 1000 72383
49265 64868 product 0 61498 A 1 D 0 0 Timber-Ore-Ventura-Wooden-Shade-Maple-Black-White-Cloth-Cord-Edison-Style-1890-Era-40watt-Bulb-Black-Canopy.jpg Ventura Wooden Shade Pendant, Maple Wood, Black Socket, CSBW-Black & White Cloth Cord, Canopy in 100-Black, Edison Style 1890 Era Bulb 1000 1000 61498
49267 64866 product 0 61500 A 1 D 0 0 Timber-Ore-Wilcox-Uplight-Wooden-Top-Pendant-Maple-Galvanized-White-Cloth-Cord-Galvanized-Canopy.jpg 14" Shade in 975-Galvanized, Maple Wood, SWH-Standard White Cord, Canopy in 975-Galvanized 1000 1000 61500
49270 64867 product 0 61503 A 1 D 0 0 Timber-Ore-Marathon-Wooden-Shade-Walnut-Jadite-Black-White-Twist-Cord-Walnut-Canopy.jpg 14" Shade in 355-Porcelain Jadite, Walnut Wood, TBW-Black & White Twist Cord, Walnut Canopy Cover 1000 1000 61503
60149 65104 product 0 72382 A 1 D 0 0 Brunson-390-Teal-Wood-Ash-Cord-CSB-Black-Cloth.jpg Brunson Wooden Top Pendant, 390-Teal, Ash Wood, CSB-Black Cloth Cord 1000 1000 72382
48970 64868 product 0 61203 A 2 D 0 0 Timber-Ore-Ventura-Wooden-Shade-Ash-Black-White-Cord-Porcelain-II-Tala-Bulb-Lit.jpg Ventura Wooden Shade Pendant, Ash Wood, Nickel Socket, TBR-Brown Twist Cord, Shown with Porcelain II Tala Lamp - Lit 1000 1000 61203
49011 64866 product 0 61244 A 2 D 0 0 Timber-Ore-Wilcox-Uplight-Wooden-Top-Pendant-Maple-White-Putty-Twist-Cord.jpg 12" Shade in 200-White, Maple Wood, TPT-Putty Twist Cord 1000 1000 61244
49015 64867 product 0 61248 A 2 D 0 0 Timber-Ore-Marathon-Wooden-Shade-Walnut-Galvanized-White-Cord.jpg 12" Shade in 975-Galvanized, Walnut Wood, SWH-Standard White Cord 1000 1000 61248
60160 65104 product 0 72393 A 2 D 0 0 Brunson-Toppers.jpg Brunson Wooden Top Pendant, 980-Brushed Aluminum, Walnut Wood, CSBB-Black & Brown Chevron Cord, Canopy in Walnut Wood 1000 1000 72393
49014 64867 product 0 61247 A 3 D 0 0 Timber-Ore-Marathon-Wooden-Shade-Ash-Oil-Rubbed-Bronze-Standard-Black-Cord-Edison-Style-1910-Bulb.jpg 16" Shade in 615-Oil-Rubbed Bronze, Ash Wood, SBK-Standard Black Cord, Shown with Edison 1910 Era Bulb 1000 1000 61247
49266 64868 product 0 61499 A 3 D 0 0 Timber-Ore-Ventura-Wooden-Shade-Ash-Black-Gold-Cloth-Cord-Porcelain-II-Tala-Bulb-Ash-Canopy.jpg Ventura Wooden Shade Pendant, Ash Wood, Black Socket, CSBG-Black & Gold Cloth Cord, Ash Wood Canopy Cover, Shown with Porcelain II Tala Lamp 1000 1000 61499
49268 64866 product 0 61501 A 3 D 0 0 Timber-Ore-Wilcox-Uplight-Wooden-Top-Pendant-Oak-Teal-Gold-White-Cord-Oak-Canopy.jpg 18" Shade in 390-Teal, Oak Wood, CSGW-Gold & White Cloth Cord, Oak Wood Canopy Cover 1000 1000 61501
60151 65104 product 0 72384 A 3 D 0 0 Brunson-705-Navy-Wood-Ash-Cord-CSB-Black-Cloth.jpg Brunson Wooden Top Pendant, 705-Navy, Ash Wood, CSB-Black Cloth Cord 1000 1000 72384
48969 64868 product 0 61202 A 4 D 0 0 Timber-Ore-Ventura-Wooden-Shade-Ash-Black-Gold-Cloth-Cord-Edison-40watt-Bulb.jpg Ventura Wooden Shade Pendant, Ash Wood, Black Socket, CSBG-Black & Gold Cloth Cord, Shown with Edison 40W Thread Bulb 1000 1000 61202
49012 64866 product 0 61245 A 4 D 0 0 Timber-Ore-Wilcox-Uplight-Wooden-Top-Pendant-Walnut-Jadite-Brown-Twist-Cord.jpg 14" Shade in 311-Jadite, Walnut Wood, TBR-Brown Twist Cord 1000 1000 61245
49016 64867 product 0 61249 A 4 D 0 0 Timber-Ore-Marathon-Wooden-Shade-Walnut-Jadite-Black-White-Twist-Cord.jpg 14" Shade in 355-Porcelain Jadite, Walnut Wood, TBW-Black & White Twist Cord 1000 1000 61249
60153 65104 product 0 72386 A 4 D 0 0 Brunson-400-Barn-Red-Wood-Ash-Cord-CSRW-Red-White-Cloth.jpg Brunson Wooden Top Pendant, 400-Barn Red, Ash Wood, CSRW-Red & White Cloth Cord 1000 1000 72386
49260 64868 product 0 61493 A 5 C 0 0 timber-ore-pics-wide-4.jpg 1200 740 61493
49269 64867 product 0 61502 A 5 D 0 0 Timber-Ore-Marathon-Wooden-Shade-Ash-Galvanized-White-Cloth-Cord-Galvanized-Canopy.jpg 12" Shade in 975-Galvanized, Ash Wood, SWH-Standard White Cord, Canopy in 975-Galvanized 1000 1000 61502
58988 64866 product 0 71221 A 5 D 0 0 Timber-Ore-Wilcox-Uplight-Wooden-Top-Pendant-Maple-Galvanized-White-Cord.jpg 14" Shade in 975-Galvanized, Maple Wood, SWH-Standard White Cord 1000 1000 71221
60159 65104 product 0 72392 A 5 D 0 0 Brunson-Toppers-Jadite.jpg Brunson Wooden Top Pendant, 311-Jadite, Ash Wood, CSB-Black Cloth Cord, Canopy in 311-Jadite 1000 1000 72392
49336 64868 product 0 61569 A 6 C 0 0 i-timber-ore-ventura-cord-pendant-commercial-office-gallery.jpg Ventura Wooden Shade Pendant, Maple Wood, Nickel Socket, SBK-Standard Black Cord 1500 1000 61569
60154 65104 product 0 72387 A 6 D 0 0 Brunson-200-White-Wood-Ash-Cord-CSB-Black-Cloth.jpg Brunson Wooden Top Pendant, 200-White, Ash Wood, CSB-Black Cloth Cord 1000 1000 72387
61491 64867 product 0 73724 A 6 C 0 0 Marathon_Wooden_Top_Pendant_Light_-_Barn_Light_Electric_-_Island_Lighting_.jpg 16” Shade in 850-Graphite, Walnut Wood, CMG-Grey Cloth Cord | Photo Courtesy of Homeowner 1500 2000 73724
68134 64866 product 0 80367 A 6 C 0 0 IMG_9383-residential-interior-lighting-kitchen-Wilcox-Uplight-Wooden-Top-Pendant-18in-100-Black-Walnut-Wood-SBK-Walnut-Canopy.jpg 18" Wilcox Uplight Wooden Top Pendant, 100-Black, Walnut Wood, Standard Black Cord, Walnut Canopy | Customer Submission 2689 3587 80367
49255 64866 product 0 61488 A 7 C 0 0 timber-ore-wesco-uplight-cord-white-maple-commercial-restaurant-coffee-cafe.jpg 12" Shade in 200-White, Maple Wood, SWH-Standard White Cord 1500 2250 61488
49337 64868 product 0 61570 A 7 C 0 0 i-timber-ore-ventura-cord-pendant-maple-wood-residential-kitchen.jpg Ventura Wooden Shade Pendant, Ash Wood, Black Socket, SBK-Standard Black Cord 1500 1133 61570
60157 65104 product 0 72390 A 7 D 0 0 Brunson-480-Blush-Pink-Wood-Walnut-Cord-CSBP-Black-Pink-Cloth.jpg Brunson Wooden Top Pendant, 480-Blush Pink, Walnut Wood, CSBP-Black & Pink Cloth Cord 1000 1000 72390
61490 64867 product 0 73723 A 7 C 0 0 Marathon_Wooden_Top_Pendant_Light_-_Barn_Light_Electric_-_Wooden_Lighting-2.jpg 16” Shade in 850-Graphite, Walnut Wood, CMG-Grey Cloth Cord | Photo Courtesy of Homeowner 1500 1958 73723
49338 64866 product 0 61571 A 8 C 0 0 timber-ore-wilcox-uplight-marathon-cord-pendant-green-white-residential-kitchen.jpg 18" Shade in 300-Dark Green, Oak Wood (Shown with Marathon Wooden Top Pendants) 1500 1185 61571
60155 65104 product 0 72388 A 8 D 0 0 Brunson-307-Emerald-Green-Wood-Ash-Cord-CSBG-Black-Gold-Cloth.jpg Brunson Wooden Top Pendant, 307-Emerald Green, Ash Wood, CSBG-Black & Gold Cloth Cord 1000 1000 72388
61489 64867 product 0 73722 A 8 C 0 0 Marathon_Wooden_Top_Pendant_Light_-_Barn_Light_Electric_-_Kitchen_Lighting-3.jpg 16” Shade in 850-Graphite, Walnut Wood, CMG-Grey Cloth Cord | Photo Courtesy of Homeowner 1500 1125 73722
61985 64868 product 0 74218 A 8 C 0 0 Ventura_Wooden_Shade_Pendant_-_Barn_Light_Electric_-_Modern_Lighting.jpeg Ventura Wooden Shade Pendant, Ash Wood, Black Socket, SBK-Standard Black Cord | Photo Courtesy of Homeowner 1431 1907 74218
49335 64867 product 0 61568 A 9 C 0 0 timber-ore-marathon-textured-black-oak-cord-commercial-restaurant-1.jpg 14" Shade in 105-Textured Black, Oak Wood, SBK-Standard Black Cord 1500 2000 61568
55431 64866 product 0 67664 A 9 C 0 0 RR-Early_Avery_Rafterhouse_guest_bath_tjxe-vh.jpg 12” Shade in 100-Black, Oak Wood, SBK-Standard Black Cord | Photo Courtesy of Early Avery - Rafterhouse and Roehner+Ryan 1500 2000 67664
61986 64868 product 0 74219 A 9 C 0 0 Ventura_Wooden_Shade_Pendant_Light_-_Ash_Wood_Barn_Light_Electric.jpg Ventura Wooden Shade Pendant, Ash Wood, Black Socket, SBK-Standard Black Cord | Photo Courtesy of Homeowner 1500 1125 74219
55432 64866 product 0 67665 A 10 C 0 0 RR-Early_Avery_Rafterhouse_guest_bath-2.jpg 12” Shade in 100-Black, Oak Wood, SBK-Standard Black Cord | Photo Courtesy of Early Avery - Rafterhouse and Roehner+Ryan 1500 1125 67665
60158 65104 product 0 72391 A 10 D 0 0 Brunson-700-Royal-Blue-Wood-Ash-Cord-CSUW-Blue-White-Cloth.jpg Brunson Wooden Top Pendant, 700-Royal Blue, Ash Wood, CSUW-Blue & White Cloth Cord 1000 1000 72391
63150 64867 product 0 75383 A 10 C 0 0 Marathon_Wooden_Top_Pendant_Light_-_Ocala_Airport_-_Barn_Light_Electric.jpg 14" Shade in 100-Black, Walnut Wood, SBK-Standard Black Cord | Photo Courtesy of Western Florida Lighting Orlando and MLM-Martin Architects 1500 676 75383
49339 64867 product 0 61572 A 11 C 0 0 i-timber-ore-wilcox-uplight-marathon-cord-pendant-green-white-residential-kitchen_iha6-wp-.jpg 14" Shade in 200-White, Oak Wood, SWH-Standard White Cord (Shown with Wilcox Uplight Wooden Top Pendant) 1500 1185 61572
60161 65104 product 0 72394 A 11 C 0 0 residential-interior-dining-room-living-brunson-cord-pendant-timber-ore-500-buttery-yellow-walnut-wood-csbp-black-pink-cloth-cord-high-res.jpg Brunson Wooden Top Pendant, 500-Buttery Yellow, Walnut Wood, CSBP-Black & Pink Cloth Cord, Canopy in Walnut Wood 1500 2076 72394
61903 64866 product 0 74136 A 11 C 0 0 Wilcox_Uplight_Wooden_Top_Pendant_Light_Barn_Light_Electric_-_Commercial_Lighting.jpg 16” Shade in 975-Galvanized, Maple Wood, SBK-Standard Black Cord | Photo Courtesy of Green State Gardner 1500 1102 74136
65337 64867 product 0 77570 A 11 C 0 0 Kitchen_5_Residential-Interior-Lighting-island-Marathon-Wooden-Top-Pendant-14in-Ash-Wood-705-Navy-Grey-cloth-Ash-Canopy.jpg 14" Shade in 705-Navy, Ash Wood, Grey Cloth Cord, Ash Canopy | Photo Courtesy of Homeowner 3024 4032 77570
65338 64867 product 0 77571 A 11 C 0 0 Kitchen_6_Residential-Interior-Lighting-island-Marathon-Wooden-Top-Pendant-12in-Ash-Wood-705-Navy-Grey-cloth-Ash-Canopy.jpg 14" Shade in 705-Navy, Ash Wood, Grey Cloth Cord, Ash Canopy | Photo Courtesy of Homeowner 2845 3793 77571
65339 64867 product 0 77572 A 11 C 0 0 Kitchen_2_Residential-Interior-Lighting-island-Marathon-Wooden-Top-Pendant-14in-Ash-Wood-705-Navy-Grey-cloth-Ash-Canopy.jpg 14" Shade in 705-Navy, Ash Wood, Grey Cloth Cord, Ash Canopy | Photo Courtesy of Homeowner 4032 3024 77572
66326 64867 product 0 78559 A 11 C 0 0 Barnlights-residential-interior-lighting-kitchen-dining-Marathon-Wooden-Top-Pendant-12in-100-Black-Ash-SBK-Loma-Pendant-20in-200-White-940-Painted-Aged-Copper-SWH.JPG 12" Marathon Wooden Top Pendant, 100-Black, Ash, Standard Black Cord | Customer Submission 4032 3024 78559
60162 65104 product 0 72395 A 12 C 0 0 commercial-interior-lounge-break-room-brunson-cord-pendant-700-royal-blue-ash-wood-csuw-blue-white-cord-high-res.jpg Brunson Wooden Top Pendant, 700-Royal Blue, Ash Wood, CSUW-Blue & White Cloth Cord 1500 2250 72395
66939 64866 product 0 79172 A 12 C 0 0 image5-commercial-interior-lighting-ice-cream-parlor-Wilcox-Uplight-Wooden-Top-Pendant-14in-200-White-Maple-Wood-SWH.jpeg 14" Wilcox Uplight Wooden Top Pendant, 200-White, Maple Wood, Standard White Cord | Customer Submission 2982 2999 79172
62337 65104 product 0 74570 A 13 C 0 0 Brunson_Wooden_Top_Pendant_Light_-_Buttery_Yellow.jpeg Brunson Wooden Top Pendant, 500-Buttery Yellow, Ash Wood, CSB-Black Cloth Cord, Canopy in 106-Matte Black | Photo Courtesy of AMP Quebec, QC 480 640 74570
66940 64866 product 0 79173 A 13 C 0 0 image4-commercial-interior-lighting-ice-cream-parlor-Wilcox-Uplight-Wooden-Top-Pendant-14in-200-White-Maple-Wood-SWH.jpeg 14" Wilcox Uplight Wooden Top Pendant, 200-White, Maple Wood, Standard White Cord | Customer Submission 2150 1893 79173
64513 65104 product 0 76746 A 14 C 0 0 Interior-Residential-Brunson-100-Black-Ash-Wood-On_tbyf-6e.jpg Brunson Wooden Top, 100-Black, Ash Wood Top | Photo Courtesy of Homeowner 1500 2250 76746
64514 65104 product 0 76747 A 15 C 0 0 Interior-Residential-Brunson-100-Black-Ash-Wood-On_kfcr-qh.jpg Brunson Wooden Top, 100-Black, Ash Wood Top | Photo Courtesy of Homeowner 1500 2250 76747
64512 65104 product 0 76745 A 16 C 0 0 Interior-Residential-Brunson-100-Black-Ash-Wood-On_9pid-sz.jpg Brunson Wooden Top, 100-Black, Ash Wood Top | Photo Courtesy of Homeowner 1500 1000 76745
64515 65104 product 0 76748 A 17 C 0 0 Interior-Residential-Brunson-100-Black-Ash-Wood-On.jpg Brunson Wooden Top, 100-Black, Ash Wood Top | Photo Courtesy of Homeowner 1500 2250 76748