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 (64778, 64776, 64777, 65467) 
ORDER BY 
  cscart_images_links.position, 
  cscart_images_links.pair_id

Query time 0.00108

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": 40,
          "filtered": 100,
          "index_condition": "cscart_images_links.object_type = 'product' and cscart_images_links.`type` = 'A' and cscart_images_links.object_id in (64778,64776,64777,65467)"
        }
      }
    },
    "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
39481 64777 product 0 51714 A 0 D 0 0 rochester-chain-12in-100-black-TGG-FST-CSB-alt.jpg 12" Rochester, 100-Black, TGG-Heavy Duty Cast Guard, FST-Frosted Glass, CSB-Black Cloth Cord 1000 1000 51714
39563 64778 product 0 51796 A 0 D 0 0 rochester-cord-12in-500-buttery-yellow-975-galvanized-CGG-RIB-CSBG-alt.jpg 12" Rochester, 500-Buttery Yellow, CGG-Standard Cast Guard, RIB-Ribbed Glass, CSBG-Black & Gold Cloth Cord, Top & Canopy in 975-Galvanized 1000 1000 51796
66778 64776 product 0 79011 A 0 D 0 0 rochester-stem-18in-400-barn-red-TGG-RIB-alt.jpg 18" Rochester, 400-Barn Red, TGG-Heavy Duty Cast Guard, RIB-Ribbed Glass 1000 1000 79011
66933 65467 product 0 79166 A 0 D 0 0 rochester-flush-mount-12in-800-industrial-grey-400-barn-red-TGG-RIB.jpg 12" Rochester, 800-Industrial Grey, Mounting in 400-Barn Red, TGG-Heavy Duty Cast Guard, RIB-Ribbed Glass 1000 1000 79166
39476 64776 product 0 51709 A 1 D 0 0 rochester-stem-14in-300-dark-greeny-CGG-FST-alt.jpg 14" Rochester, 300-Dark Green, CGG-Standard Cast Guard, FST-Frosted Glass 1000 1000 51709
66701 64777 product 0 78934 A 1 D 0 0 rochester-chain-full-build-18in-975-galvanized-TGG-FST-CSBG-alt.jpg 18" Rochester, 975-Galvanized, TGG-Heavy Duty Cast Guard, FST-Frosted Glass, CSBG-Black & Gold Cloth Cord 1000 1000 78934
66729 64778 product 0 78962 A 1 D 0 0 rochester-cord-full-build-16in-765-delphite-100-black-TGG-RIB-CSBW-alt.jpg 16" Rochester, 765-Porcelain Delphite, TGG-Heavy Duty Cast Guard, 150-Black, RIB-Ribbed Glass, CSBW-Black & White Cloth Cord, Top & Canopy in 150-Black 1000 1000 78962
66935 65467 product 0 79168 A 1 D 0 0 rochester-flush-mount-14in-390-teal-975-galvanized-CGG-RIB.jpg 14" Rochester, 390-Teal, Mounting in 975-Galvanized, CGG-Standard Cast Guard, RIB-Ribbed Glass 1000 1000 79168
39483 64777 product 0 51716 A 2 D 0 0 rochester-chain-14in-307-emerald-green-TGG-RIB-CSGW-alt.jpg 14" Rochester, 307-Emerald Green, TGG-Heavy Duty Cast Guard, RIB-Ribbed Glass, CSGW-Gold & White Cloth Cord 1000 1000 51716
66728 64778 product 0 78961 A 2 D 0 0 rochester-cord-18in-400-barn-red-TGG-FST-CRZ-alt.jpg 18" Rochester, 400-Barn Red, TGG-Heavy Duty Cast Guard, FST-Frosted Glass, CRZ-Red Chevron Cord 1000 1000 78961
66777 64776 product 0 79010 A 2 D 0 0 rochester-stem-16in-765-delphite-WGG-FST-alt.jpg 16" Rochester, 765-Porcelain Delphite, WGG-Wire Guard, FST-Frosted Glass 1000 1000 79010
66932 65467 product 0 79165 A 2 D 0 0 rochester-flush-mount-12in-480-blush-pink-200-white-WGG-RIB.jpg 12" Rochester, 480-Blush Pink, Mounting in 200-White, WGG-Wire Guard, RIB-Ribbed Glass 1000 1000 79165
39475 64776 product 0 51708 A 3 D 0 0 rochester-stem-12in-500-buttery-yellow-100-black-TGG-RIB-alt.jpg 12" Rochester, 500-Buttery Yellow, TGG-Heavy Duty Cast Guard, 100-Black, RIB-Ribbed Glass, Heavy Duty Cast Guard, Mounting in 100-Black 1000 1000 51708
66699 64777 product 0 78932 A 3 D 0 0 rochester-chain-16in-765-delphite-100-black-CGG-RIB-CSBW-alt.jpg 16" Rochester, 765-Porcelain Delphite, CGG-Standard Cast Guard, 150-Black, RIB-Ribbed Glass, CSBW-Black & White Cloth Cord, Mounting in 150-Black 1000 1000 78932
66725 64778 product 0 78958 A 3 D 0 0 rochester-cord-14in-705-navy-CGG-FST-CSGW-alt.jpg 14" Rochester, 705-Navy, CGG-Standard Cast Guard, FST-Frosted Glass, CSGW-Gold & White Cloth Cord 1000 1000 78958
66934 65467 product 0 79167 A 3 D 0 0 rochester-flush-mount-14in-300-dark-green-CGG-FST.jpg 14" Rochester, 300-Dark Green, CGG-Standard Cast Guard, FST-Frosted Glass 1000 1000 79167
66700 64777 product 0 78933 A 4 D 0 0 rochester-chain-18in-400-barn-red-CGG-FST-CRD-alt.jpg 18" Rochester, 400-Barn Red, CGG-Standard Cast Guard, FST-Frosted Glass, CSR-Red Cloth Cord 1000 1000 78933
66724 64778 product 0 78957 A 4 D 0 0 rochester-cord-14in-307-emerald-100-black-CGG-FST-SBK-alt.jpg 14" Rochester, 307-Emerald Green, CGG-Standard Cast Guard, 100-Black, CGG-Standard Cast Guard, FST-Frosted Glass, SBK-Standard Black Cord 1000 1000 78957
66776 64776 product 0 79009 A 4 D 0 0 rochester-stem-16in-200-white-100-black-CGG-RIB-alt.jpg 16" Rochester, 200-White, CGG-Standard Cast Guard, 100-Black, RIB-Ribbed Glass, Mounting in 100-Black 1000 1000 79009
66937 65467 product 0 79170 A 4 D 0 0 rochester-flush-mount-16in-765-delphite-100-black-WGG-RIB.jpg 16" Rochester, 765-Porcelain Delphite, Mounting in 150-Black, WGG-Wire Guard, RIB-Ribbed Glass 1000 1000 79170
39485 64777 product 0 51718 A 5 D 0 0 rochester-chain-14in-705-Navy-975-galvanized-CGG-RIB-CRZ-alt.jpg 14" Rochester, 705-Navy, CGG-Standard Cast Guard, 975-Galvanized, RIB-Ribbed Glass, CRZ-Red Chevron Cord, Mounting in 975-Galvanized 1000 1000 51718
66727 64778 product 0 78960 A 5 D 0 0 rochester-cord-18in-100-black-CGG-FST-CSB-alt.jpg 18" Rochester, 100-Black, CGG-Standard Cast Guard, FST-Frosted Glass, CSB-Black Cloth Cord 1000 1000 78960
66775 64776 product 0 79008 A 5 D 0 0 rochester-stem-14in-705-navy-CGG-FST-alt.jpg 14" Rochester, 705-Navy, CGG-Standard Cast Guard, FST-Frosted Glass 1000 1000 79008
66938 65467 product 0 79171 A 5 D 0 0 rochester-flush-mount-18in-400-barn-red-CGG-FST.jpg 18" Rochester, 400-Barn Red, CGG-Standard Cast Guard, FST-Frosted Glass 1000 1000 79171
66698 64777 product 0 78931 A 6 D 0 0 rochester-chain-16in-200-white-WGG-FST-CSW-alt.jpg 16" Rochester, 200-White, WGG-Wire Guard, FST-Frosted Glass, CSW-White Cloth Cord 1000 1000 78931
66726 64778 product 0 78959 A 6 D 0 0 rochester-cord-16in-200-white-CGG-RIB-CSW-alt.jpg 16" Rochester, 200-White, CGG-Standard Cast Guard, RIB-Ribbed Glass, CSW-White Cloth Cord 1000 1000 78959
66779 64776 product 0 79012 A 6 D 0 0 rochester-stem-18in-975-galvanized-CGG-RIB-HSC-alt.jpg 18" Rochester, 975-Galvanized, CGG-Standard Cast Guard, RIB-Ribbed Glass, Hang Straight Canopy 1000 1000 79012
66936 65467 product 0 79169 A 6 D 0 0 rochester-flush-mount-16in-200-white-CGG-FST.jpg 16" Rochester, 200-White, CGG-Standard Cast Guard, FST-Frosted Glass 1000 1000 79169
39478 64776 product 0 51711 A 7 C 0 0 rochester_vintage_industrial_14in_550_yellow_6instem_wireguard_clearglass2.jpg 14" Rochester, 550-Porcelain Yellow, WGG-Wire Guard, 975-Galvanized, CLR-Clear Glass, Mounting in 975-Galvanized | Photo Courtesy of Taylor Newton Photography 1500 1200 51711
39484 64777 product 0 51717 A 7 C 0 0 rochester-16-inch-wgg-chain-hung-250-white-frosted-glass-IN-SETTING.jpg 16" Rochester, 250-Porcelain White, WGG-Wire Guard, 975-Galvanized, FST-Frosted Glass, Chain in 975-Galvanized, CSUW-Blue & White Cloth Cord 600 396 51717
39569 64778 product 0 51802 A 7 C 0 0 rochester_vintage_industrial_pendant_18in_graphite_CSBW_TGG_Ribbed-alt.jpg 18" Rochester, 850-Porcelain Graphite, CSBW-Black & White Cloth | Photo Courtesy of Loi Thai of Tone and Tone 1500 1888 51802
39479 64776 product 0 51712 A 8 C 0 0 ceiling_pendants_vintage_lighting.jpg 16" Rochester, 455-Porcelain Cherry Red, CGG-Standard Cast Guard, FST-Frosted Glass 750 950 51712
39568 64778 product 0 51801 A 8 C 0 0 rochester_vintage_industrial_pendant_18in_850_graphite_CSBW_TGG_Ribbed6.jpg (2) 18" Rochester, 850-Porcelain Graphite, CSBW-Black & White Cloth Cord, TGG-Heavy Duty Cast Guard, 975-Galvanized Guard Finish, RIB-Ribbed Glass | Photo Courtesy of Loi Thai, Tone on Tone 1500 1232 51801
39567 64778 product 0 51800 A 9 C 0 0 rochester_vintage_industrial_cord_pendant_12in_cherryred_sbk_ribbedglass.jpg 12" Rochester, 455-Porcelain Cherry Red, SBK-Standard Black Cord, RIB-Ribbed Glass | Courtesy of Melissa Kawecki, Harrison Lubin, and Kris Kiger 1500 2265 51800
60318 64778 product 0 72551 A 10 C 0 0 Rochester_Vintage_Industrial_Cord_Pendant_Light_-_Barn_Light_Electric_-_Interior_Hallway_Lighting.JPG 14” Rochester, 250-White, SWH-Standard White Cord, CGG-Standard Cast Guard in 975-Galvanized, Frosted Glass | Photo Courtesy of From the Hartland (@from.the.hartland) 1536 2048 72551
56271 64778 product 0 68504 A 11 C 0 0 Barn_Light_Electric_-_Rochester_Vintage_Industrial_Cord_Pendant_-_Dining_Room_Lighting_-_KP_Spaces_-_Keri_Peterson-alt.jpg 18" Rochester, 250-White, TBW-Black & White | Photo Courtesy of Keri Petersen of KP Spaces 1500 2000 68504
39566 64778 product 0 51799 A 12 C 0 0 vintage_industrial_pendants.jpg 12" Rochester, 455-Porcelain Cherry Red, SBK-Standard Black Cord, RIB-Ribbed Glass | Courtesy of Melissa Kawecki, Harrison Lubin, and Kris Kiger 684 1024 51799
39565 64778 product 0 51798 A 13 C 0 0 vintage_industrial_pendant-512x768.jpg 14" Rochester, 455-Porcelain Cherry Red, SBK-Standard Black Cord | Customer Submission 512 768 51798
60319 64778 product 0 72552 A 14 C 0 0 Rochester_Vintage_Industrial_Cord_Pendant_-_Barn_Light_Electric_-_Hallway_Interior_Farmhouse_Lighting.JPG 14” Rochester, 250-White, SWH-Standard White Cord, CGG-Standard Cast Guard in 975-Galvanized, Frosted Glass | Photo Courtesy of From the Hartland (@from.the.hartland) 1536 2048 72552
39570 64778 product 0 51803 A 15 C 0 0 rochester_vintage_industrial_pendant_18in_850_graphite_CSBW_TGG_Ribbed3__1_.jpg 18" Rochester, 850-Porcelain Graphite, CSBW-Black & White Cloth | Photo Courtesy of Loi Thai of Tone and Tone 1500 2000 51803