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 (64780, 64781, 64783, 64782, 65465) 
ORDER BY 
  cscart_images_links.position, 
  cscart_images_links.pair_id

Query time 0.00131

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": 50,
          "filtered": 100,
          "index_condition": "cscart_images_links.object_type = 'product' and cscart_images_links.`type` = 'A' and cscart_images_links.object_id in (64780,64781,64783,64782,65465)"
        }
      }
    },
    "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
39599 64780 product 0 51832 A 0 D 0 0 Chicago-gooseneck-12in-975-glvanized-TGG-FST-G13-alt.jpg 12" Chicago, 975-Galvanized, TGG-Heavy Duty Cast Guard, FST-Frosted Glass, G13 Gooseneck Arm 1000 1000 51832
39622 64782 product 0 51855 A 0 D 0 0 chicago-chain-14in-500-buttery-yellow-CGG-RIB-CSW.jpg 14" Chicago, 500-Buttery Yellow, CGG-Standard Cast Guard, RIB-Ribbed Glass, CSW-White Cloth Cord 1000 1000 51855
39627 64783 product 0 51860 A 0 D 0 0 chicago-cord-16in-400-barn-red-WGG-RIB-CRZ.jpg 16" Chicago, 400-Barn Red, WGG-Wire Guard, RIB-Ribbed Glass, CRZ-Red Chevron Cord 1000 1000 51860
66787 64781 product 0 79020 A 0 D 0 0 chicago-stem-18-350-vintage-green-975-galvanized-CGG-FST.jpg 18" Chicago, 350-Porcelain Vintage Green, CGG-Standard Cast Guard, 975-Galvanized, FST-Frosted Glass, Mounting in 975-Galvanized 1000 1000 79020
66953 65465 product 0 79186 A 0 D 0 0 chicago-flush-mount-12in-975-galvanized-CGG-FST.jpg 12" Chicago, 975-Galvanized, CGG-Standard Cast Guard, FST-Frosted Glass 1000 1000 79186
39619 64781 product 0 51852 A 1 D 0 0 chicago-stem-12in-975-galvanized-400-barn-red-HSC-TGG-RIB.jpg 12" Chicago, 975-Galvanized, TGG-Heavy Duty Cast Guard, 400-Barn Red, RIB-Ribbed Glass, Hang Straight Canopy 1000 1000 51852
66665 64780 product 0 78898 A 1 D 0 0 Chicago-gooseneck-14in-400-barn-red-WGG-CLR-G11-alt.jpg 14" Chicago, 400-Barn Red, WGG-Wire Guard, CLR-Clear Glass, G11 Gooseneck Arm 1000 1000 78898
66709 64782 product 0 78942 A 1 D 0 0 chicago-chain-full-build-20in-390-teal-975-galvanized-CGG-FST-CSBG.jpg 20" Chicago, 390-Teal, CGG-Standard Cast Guard, 975-Galvanized, FST-Frosted Glass, CSBG-Black & Gold Cloth Cord, Mounting in 975-Galvanized 1000 1000 78942
66740 64783 product 0 78973 A 1 D 0 0 chicago-cord-full-size-12in-975-galvanized-CGG-FST-CSUW.jpg 12" Chicago, 975-Galvanized, CGG-Standard Cast Guard, FST-Frosted Glass, CSUW-Blue & White Cloth Cord 1000 1000 78973
66955 65465 product 0 79188 A 1 D 0 0 chicago-flush-mount-16in-400-barn-red-CGG-FST.jpg 16" Chicago, 400-Barn Red, CGG-Standard Cast Guard, FST-Frosted Glass 1000 1000 79188
39624 64782 product 0 51857 A 2 D 0 0 chicago-chain-16in-400-barn-red-CGG-FST-CRZ.jpg 16" Chicago, 400-Barn Red, CGG-Standard Cast Guard, FST-Frosted Glass, CRZ-Red Chevron Cord 1000 1000 51857
66663 64780 product 0 78896 A 2 D 0 0 Chicago-gooseneck-18in-355-jadite-975-glvanized-CGG-FST-G19-alt.jpg 18" Chicago, 355-Porcelain Jadite, CGG-Standard Cast Guard, 975-Galvanized, FST-Frosted Glass, G19 Gooseneck Arm, 975-Galvanized 1000 1000 78896
66736 64783 product 0 78969 A 2 D 0 0 chicago-cord-16in-700-royal-blue-200-white-CGG-FST-CSW.jpg 16" Chicago, 700-Royal Blue, CGG-Standard Cast Guard, 200-White, FST-Frosted Glass, CSW-White Cloth Cord, Top & Canopy in 200-White 1000 1000 78969
66786 64781 product 0 79019 A 2 D 0 0 chicago-stem-16in-490-magenta-100-black-CGG-RIB.jpg 16" Chicago, 490-Magenta, CGG-Standard Cast Guard, 100-Black, RIB-Ribbed Glass, Mounting in 100-Black 1000 1000 79019
66959 65465 product 0 79192 A 2 D 0 0 chicago-flush-mount-20in-390-teal-975-galvanized-CGG-FST.jpg 20" Chicago, 390-Teal, Mounting in 975-Galvanized, CGG-Standard Cast Guard, 975-Galvanized, FST-Frosted Glass 1000 1000 79192
39626 64783 product 0 51859 A 3 D 0 0 chicago-cord-14in-500-buttery-yellow-CGG-RIB-CSBG.jpg 14" Chicago, 500-Buttery Yellow, CGG-Standard Cast Guard, RIB-Ribbed Glass, CSBG-Black & Gold Cloth Cord 1000 1000 51859
66664 64780 product 0 78897 A 3 D 0 0 Chicago-gooseneck-14in-500-buttery-yellow-CGG-RIB-G15-alt.jpg 14" Chicago, 500-Buttery Yellow, CGG-Standard Cast Guard, RIB-Ribbed Glass, G15 Gooseneck 1000 1000 78897
66708 64782 product 0 78941 A 3 D 0 0 chicago-chain-20in-100-black-TGG-FST-SBK.jpg 20" Chicago, 100-Black, TGG-Heavy Duty Cast Guard, FST-Frosted Glass, SBK-Standard Black Cord 1000 1000 78941
66790 64781 product 0 79023 A 3 D 0 0 chicago-stem-20in-390-teal-200-white-CGG-FST.jpg 20" Chicago, 390-Teal, CGG-Standard Cast Guard, 200-White, FST-Frosted Glass, Mounting in 200-White 1000 1000 79023
66954 65465 product 0 79187 A 3 D 0 0 chicago-flush-mount-14in-500-buttery-yellow-200-white-CGG-RIB.jpg 14" Chicago, 500-Buttery Yellow, Mounting in 200-White, CGG-Standard Cast Guard, RIB-Ribbed Glass 1000 1000 79187
66707 64782 product 0 78940 A 4 D 0 0 chicago-chain-18in-355-Jadite-975-galvanized-CGG-RIB-CSB.jpg 18" Chicago, 355-Porcelain Jadite, CGG-Standard Cast Guard, 975-Galvanized, RIB-Ribbed Glass, CSB-Black Cloth Cord 1000 1000 78940
66737 64783 product 0 78970 A 4 D 0 0 chicago-cord-18in-250-white-100-black-TGG-RIB-CSBW.jpg 18" Chicago, 250-Porcelain White, TGG-Heavy Duty Cast Guard, 150-Black, RIB-Ribbed Glass, CSBW-Black & White Cloth Cord 1000 1000 78970
66789 64781 product 0 79022 A 4 D 0 0 chicago-stem-20in-100-black-CGG-RIB.jpg 20" Chicago, 100-Black, CGG-Standard Cast Guard, RIB-Ribbed Glass 1000 1000 79022
66958 65465 product 0 79191 A 4 D 0 0 chicago-flush-mount-20in-100-black-TGG-RIB.jpg 20" Chicago, 100-Black, TGG-Heavy Duty Cast Guard, RIB-Ribbed Glass 1000 1000 79191
66999 64780 product 0 79232 A 4 D 0 0 chicago-gooseneck-16in-600-bronze-FST-G22-alt.jpg 16" Chicago, 600-Bronze, FST-Frosted Glass, G22 Gooseneck Arm 1000 1000 79232
39623 64782 product 0 51856 A 5 D 0 0 chicago-chain-16in-700-royal-CGG-RIB-CSUW.jpg 16" Chicago, 700-Royal Blue, CGG-Standard Cast Guard, RIB-Ribbed Glass, CSUW-Blue & White Cloth Cord 1000 1000 51856
66667 64780 product 0 78900 A 5 D 0 0 Chicago-gooseneck-20in-300-dark-green-100-black-TGG-RIB-G8-alt.jpg 20" Chicago, 300-Dark Green, TGG-Heavy Duty Cast Guard, 100-Black, RIB-Ribbed Glass, G8 Gooseneck Arm, 100-Black 1000 1000 78900
66739 64783 product 0 78972 A 5 D 0 0 chicago-cord-20in-390-teal-975-galvanized-CGG-RIB-CSGW.jpg 20" Chicago, 390-Teal, CGG-Standard Cast Guard, 975-Galvanized, RIB-Ribbed Glass, CSGW-Gold & White Cloth Cord 1000 1000 78972
66788 64781 product 0 79021 A 5 D 0 0 chicago-stem-18in-355-jadite-100-black-RIB.jpg 18" Chicago, 355-Porcelain Jadite, CGG-Standard Cast Guard, 150-Black, RIB-Ribbed Glass 1000 1000 79021
66956 65465 product 0 79189 A 5 D 0 0 chicago-flush-mount-16in-700-royal-blue-200-white-CGG-RIB.jpg 16" Chicago, 700-Royal Blue, Mounting in 200-White, CGG-Standard Cast Guard, 200-White, RIB-Ribbed Glass 1000 1000 79189
39620 64781 product 0 51853 A 6 D 0 0 chicago-stem-14in-200-white-CGG-FST.jpg 14" Chicago, 200-White, CGG-Standard Cast Guard, FST-Frosted Glass 1000 1000 51853
58095 64780 product 0 70328 A 6 C 0 0 Chicago_Vintage_Industrial_Gooseneck_Light_-_250_White_Barn_Light_Electric_-_Modern_Gooseneck_Office_Lighting.jpg 12” Chicago, 250-Porcelain White, No Cast Guard, CLR-Clear Glass, G3 Gooseneck Arm | Courtesy of Greenberg Design Gallery 1500 2000 70328
66706 64782 product 0 78939 A 6 D 0 0 chicago-chain-18in-350-vintage-100-black-CGG-RIB-CSBG.jpg 18" Chicago, 350-Porcelain Vintage Green, CGG-Standard Cast Guard, 150-Black, RIB-Ribbed Glass, CSBG-Black & Gold Cloth Cord, Mounting in 150-Black 1000 1000 78939
66738 64783 product 0 78971 A 6 D 0 0 chicago-cord-20in-100-black-CGG-FST-CSB.jpg 20" Chicago, 100-Black, CGG-Standard Cast Guard, FST-Frosted Glass, CSB-Black Cloth Cord 1000 1000 78971
66957 65465 product 0 79190 A 6 D 0 0 chicago-flush-mount-18in-350-vintage-green-100-black-WGG-RIB.jpg 18" Chicago, 350-Porcelain Vintage Green, WGG-Wire Guard, 150-Black, RIB-Ribbed Glass 1000 1000 79190
49915 64783 product 0 62148 A 7 C 0 0 Barn_Light_Electric_-_Chicago_Vintage_Industrial_Cord_Hung_Pendants.png 12” Chicago, 250-White, CGG-Standard Cast Guard, 975-Galvanized, Ribbed Glass, SBK-Standard Black Cord | Photo Courtesy of Amy Marvin 1170 1096 62148
58499 64781 product 0 70732 A 7 C 0 0 Chicago_Vintage_Industrial_Stem_Mount_Pendant_Light_-_250_Porcelain_White_Barn_Light_Electric_-_Modern_Porch_Lighting.jpg 20” Chicago, 250-Porcelain White, WGG-Wire Guard, 975-Galvanized, 980-Brushed Aluminum Mounting Finish, Frosted Glass, 18" Stem, Standard Canopy | Photo Courtesy of Homeowner 1500 1017 70732
62192 64780 product 0 74425 A 7 C 0 0 Chicago_Vintage_Industrial_LED_Gooseneck_Light_18in_100_Black_G22arm_975-Galvanized_FrostedGlass.jpg 18" Chicago, 100-Black, FST-Frosted Glass, G22 Gooseneck Arm, FST-Frosted Glass | Photo Courtesy of Customer 1500 1125 74425
62193 64780 product 0 74426 A 8 C 0 0 Chicago_Vintage_Industrial_LED_Gooseneck_Light_14in_100-Black_G22arm_975-Galvanized_Frosted_Glass.jpg 14" Chicago, 100-Black, FST-Frosted Glass, G22 Gooseneck Arm, FST-Frosted Glass | Photo Courtesy of Customer 1500 1331 74426
62414 64781 product 0 74647 A 8 C 0 0 Chicago_Vintage_Industrial_Stem_Mount_Pendant_20in_850-Porcelain-Graphite_48instem_975-Galvanized_HDCanopy_TGG_975-Galvanized_RibbedGlass2.jpg 20" Chicago, 850-Porcelain Graphite, TGG-Heavy Duty Cast Guard, 975-Galvanized, RIB-Ribbed Glass, 48" Stem, Heavy Duty Stem Mount Canopy 1500 2000 74647
58498 64781 product 0 70731 A 9 C 0 0 Chicago_Vintage_Industrial_Stem_Mount_Pendant_Light_-_250_Porcelain_White_Barn_Light_Electric_-_Modern_Porch_Farmhouse_Lighting.jpg 20” Chicago, 250-Porcelain White, WGG-Wire Guard, 975-Galvanized, 980-Brushed Aluminum Mounting Finish, Frosted Glass, 18" Stem, Standard Canopy | Photo Courtesy of Homeowner 1500 1919 70731
61459 64780 product 0 73692 A 9 C 0 0 Chicago_Vintage_Industrial_Gooseneck_Light_-_Barn_Light_Electric_-_Exterior_Lighting.jpg 14” Chicago, 150-Black, No Cast Guard, CLR-Clear Glass, G22 Gooseneck Arm | Courtesy of Nell Lindquist 997 1500 73692
39602 64780 product 0 51835 A 10 C 0 0 chicago_vintage_industrial_20in_metchrome_G24arm_TGG_clearglass_dusk2dawn13.jpg (3) 20" Chicago, 950-Porcelain Metallic Chrome, TGG-Heavy Duty Cast Guard, CLR-Clear Glass, G24 Gooseneck Arm | Courtesy of Ivory Home Design 1024 1365 51835
66210 64781 product 0 78443 A 10 C 0 0 DI2Y65~2.JPG 18" Chicago, 250-White, 36" Stem, Standard Cast Guard, 975-Galvanized, Ribbed Glass | Photo Courtesy of Dion Williams 7952 5304 78443
61460 64780 product 0 73693 A 11 C 0 0 Chicago_Vintage_Industrial_Gooseneck_Light_-_Barn_Light_Electric_-_Back_Porch_Lighting.jpg 14” Chicago, 150-Black, No Cast Guard, CLR-Clear Glass, G22 Gooseneck Arm | Courtesy of Nell Lindquist 997 1500 73693
66211 64781 product 0 78444 A 11 C 0 0 DKE3PT~5.JPG 18" Chicago, 250-White, 36" Stem, Standard Cast Guard, 975-Galvanized, Ribbed Glass | Photo Courtesy of Dion Williams 7952 4473 78444
66852 64781 product 0 79085 A 11 C 0 0 II7THZ~0.JPG 20" Chicago, 105-Textured Black, 36" Stem, 975-Galvanized, Heavy Duty Canopy, Heavy Duty Cast Guard | Photo Courtesy of Dion Williams 2400 1601 79085
66853 64781 product 0 79086 A 11 C 0 0 I750SB~A.JPG 20" Chicago, 105-Textured Black, 36" Stem, 975-Galvanized, Heavy Duty Canopy, Heavy Cast Guard | Photo Courtesy of Dion Williams 2400 1601 79086
58096 64780 product 0 70329 A 12 C 0 0 Chicago_Vintage_Industrial_Gooseneck_Light_-_Barn_Light_Electric_-_Modern_Office_Lighting.jpg 12” Chicago, 250-Porcelain White, No Cast Guard, CLR-Clear Glass, G3 Gooseneck Arm | Courtesy of Greenberg Design Gallery 1116 1374 70329
39601 64780 product 0 51834 A 13 C 0 0 chicago_vintage_industrial_20in_metallic_chrome_G24arm_TGG_clearglass_dusk2dawn3.jpg 20" Chicago, 950-Porcelain Metallic Chrome, TGG-Heavy Duty Cast Guard, CLR-Clear Glass, G24 Gooseneck Arm | Courtesy of Ivory Home Design 1500 2000 51834