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 (58117, 62356, 61428, 61518) 
ORDER BY 
  cscart_images_links.position, 
  cscart_images_links.pair_id

Query time 0.00109

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": 48,
          "filtered": 100,
          "index_condition": "cscart_images_links.object_type = 'product' and cscart_images_links.`type` = 'A' and cscart_images_links.object_id in (58117,62356,61428,61518)"
        }
      }
    },
    "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
16200 61428 product 0 27720 A 0 D 0 0 industrial-guard-cord-warehouse-715-delphite-TGG-FST-CSBW.jpg Industrial Guard Pendant Light, 715-Delphite, Warehouse Shade, TGG-Heavy Duty Cast Guard, FST-Frosted Glass, CSBW-Black & White Cloth Cord 1000 1000 27720
16632 61518 product 0 28188 A 0 D 0 0 blue-collar-stem-307-emerald-green-RIB.jpg 16" Blue Collar, 307-Emerald Green, RIB-Ribbed Glass 1000 1000 28188
65223 62356 product 0 77456 A 0 D 0 0 CGG-stem-975-galvanized-490-magenta-CGG-RIB.jpg Industrial Guard LED Sconce, 975-Galvanized, Flared Shade, CGG-Standard Cast Guard, 490-Magenta, RIB-Ribbed Glass 1000 1000 77456
65224 62356 product 0 77457 A 0 D 0 0 Industrial-guard-stem-warehouse-311-jadite-TGG-FST.jpg Industrial Guard LED Sconce, 311-Jadite, TGG-Heavy Duty Cast Guard, FST-Frosted Glass 1000 1000 77457
65583 58117 product 0 77816 A 0 D 0 0 double-loft-490-magenta-WGG-RIB.jpg Industrial Loft Double Pendant, 490-Magenta, WGG-Wire Guard, RIB-Ribbed Glass 1000 1000 77816
16201 61428 product 0 27721 A 1 D 0 0 full-build-industrial-guard-cord-100-black-CGG-CLR-CSB.jpg Industrial Guard Pendant Light, 100-Black, Flared Shade, CGG-Standard Cast Guard, CLR-Clear Glass, CSB-Black Cloth Cord 1000 1000 27721
63142 62356 product 0 75375 A 1 D 0 0 Industrial-guard-stem-400-barn-red-CGG-CLR.jpg Industrial Guard LED Stem Mount Pendant Light, 400-Barn Red, Topless Shade, CGG-Standard Cast Guard, CLR-Clear Glass 1000 1000 75375
65580 58117 product 0 77813 A 1 D 0 0 double-loft-100-black-TGG-RIB.jpg Industrial Loft Double Pendant, 100-Black, TGG-Heavy Duty Cast Guard, RIB-Ribbed Glass 1000 1000 77813
65756 61518 product 0 77989 A 1 D 0 0 blue-collar-stem-705-navy-975-galvanized-WGG-RIB.jpg 16" Blue Collar, 705-Navy, Mounting in 975-Galvanized, RIB-Ribbed Glass 1000 1000 77989
24456 62356 product 0 36437 A 2 D 0 0 Industrial-guard-stem-200-white-CGG-FST.jpg Industrial Guard LED Stem Mount Pendant Light, 200-White, Topless Shade, CGG-Standard Cast Guard, FST-Frosted Glass 1000 1000 36437
32103 61428 product 0 44336 A 2 D 0 0 industrial-guard-cord-warehouse-500-buttery-yellow-CGG-RIB.jpg Industrial Guard Pendant Light, 500-Buttery Yellow, Warehouse Shade, CGG-Standard Cast Guard, RIB-Ribbed Glass, CSUW-Blue & White Cloth Cord 1000 1000 44336
65579 58117 product 0 77812 A 2 D 0 0 atomic-double-loft-100-black-500-yellow-cgg-rib.jpg Industrial Loft Double Pendant, 100-Black, CGG-Standard Cast Guard, 500-Buttery Yellow, RIB-Ribbed Glass 1000 1000 77812
65753 61518 product 0 77986 A 2 D 0 0 blue-collar-stem-400-barn-red-WGG-RIB.jpg 12" Blue Collar, 400-Barn Red, RIB-Ribbed Glass 1000 1000 77986
24453 61428 product 0 36434 A 3 D 0 0 industrial-guard-cord-topless-975-galvanized-CGG-FST-CSB.jpg Industrial Guard Pendant Light, 975-Galvanized, Topless Shade, CGG-Standard Cast Guard, FST-Frosted Glass, CSB-Black Cloth Cord 1000 1000 36434
65221 62356 product 0 77454 A 3 D 0 0 Industrial-guard-stem-flared-100-black-CGG-RIB.jpg Industrial Guard LED Sconce, 100-Black, Flared Shade, CGG-Standard Cast Guard, RIB-Ribbed Glass 1000 1000 77454
65581 58117 product 0 77814 A 3 D 0 0 double-loft-307-emerald-CGG-RIB.jpg Industrial Loft Double Pendant, 307-Emerald Green, CGG-Standard Cast Guard, RIB-Ribbed Glass 1000 1000 77814
65757 61518 product 0 77990 A 3 D 0 0 blue-collar-stem-975-galvanized-WGG-FST-HSC.jpg 14" Blue Collar, 975-Galvanized, FST-Frosted Glass, Hang Straight Canopy 1000 1000 77990
16202 61428 product 0 27722 A 4 D 0 0 industrial-guard-cord-flared-400-barn-red-CGG-RIB.jpg Industrial Guard Pendant Light, 400-Barn Red, Flared Shade, CGG-Standard Cast Guard, RIB-Ribbed Glass, CRZ-Red Chevron Cord 1000 1000 27722
16620 61518 product 0 28176 A 4 D 0 0 blue-collar-stem-100-black-WGG-RIB.jpg 12" Blue Collar, 100-Black, RIB-Ribbed Glass 1000 1000 28176
65582 58117 product 0 77815 A 4 D 0 0 double-loft-400-barn-red-CGG-FST.jpg Industrial Loft Double Pendant, 400-Barn Red, CGG-Standard Cast Guard, FST-Frosted Glass 1000 1000 77815
32102 61428 product 0 44335 A 5 D 0 0 industrial-guard-cord-topless-307-emerald-green-CGG-FST-CSBB.jpg Industrial Guard Pendant Light, 307-Emerald Green, Topless Shade, CGG-Standard Cast Guard, FST-Frosted Glass, CSBB-Black & Brown Cloth Cord 1000 1000 44335
65225 62356 product 0 77458 A 5 D 0 0 Industrial-guard-stem-warehouse-500-bauttery-yellow-CGG-RIB_wzyx-xz.jpg Industrial Guard LED Sconce, 500-Buttery Yellow, CGG-Standard Cast Guard, RIB-Ribbed Glass 1000 1000 77458
65585 58117 product 0 77818 A 5 D 0 0 double-loft-975-galvanized-CGG-FST.jpg Industrial Loft Double Pendant, 975-Galvanized, CGG-Standard Cast Guard, FST-Frosted Glass 1000 1000 77818
65754 61518 product 0 77987 A 5 D 0 0 blue-collar-stem-490-magenta-WGG-RIB.jpg 16" Blue Collar, 490-Magenta, RIB-Ribbed Glass 1000 1000 77987
32100 61428 product 0 44333 A 6 D 0 0 industrial-guard-cord-flared-WGG-200-white-FST-CSW.jpg Industrial Guard Pendant Light, 200-White, Flared Shade, WGG-Wire Guard, FST-Frosted Glass, CSW-White Cloth Cord 1000 1000 44333
65220 62356 product 0 77453 A 6 D 0 0 Industrial-guard-stem-975-galvanized-CGG-FST.jpg Industrial Guard LED Stem Mount Pendant Light, 975-Galvanized, Topless Shade, CGG-Standard Cast Guard, FST-Frosted Glass 1000 1000 77453
65584 58117 product 0 77817 A 6 D 0 0 double-loft-705-navy-CGG-CLR.jpg Industrial Loft Double Pendant, 705-Navy, CGG-Standard Cast Guard, CLR-Clear Glass 1000 1000 77817
65755 61518 product 0 77988 A 6 D 0 0 blue-collar-stem-700-royal-blue-WGG-RIB.jpg 12" Blue Collar, 700-Royal Blue, RIB-Ribbed Glass 1000 1000 77988
32104 61428 product 0 44337 A 7 D 0 0 industrial-guard-cord-topless-705-navy-blue-CGG-CLR-CSGW.jpg Industrial Guard Pendant Light, 705-Navy, Topless Shade, CGG-Standard Cast Guard, CLR-Clear Glass, CSGW-Gold & White Cloth Cord 1000 1000 44337
50184 58117 product 0 62417 A 7 C 0 0 erica-chalk-farm-industrial-double-100-black-nov19-104.jpg Industrial Loft Double Pendant, 100-Black, WGG-Wire Guard, Cast Guard Finish Same as Fixture | Photo Courtesy of Erica (@newhomeoldsoul) 1500 2250 62417
59529 61518 product 0 71762 A 7 C 0 0 Blue_Collar_Stem_Mount_Pendant_-_700_Royal_Blue_Barn_Light_Electric_-_Modern_Office_Industrial_Lighting.jpg 16” Blue Collar Stem Mount Pendant, 700-Royal Blue, 24” Stem, RIB-Ribbed Glass | Photo Courtesy of The End Design Studio and Marco Bell 1500 2245 71762
65222 62356 product 0 77455 A 7 D 0 0 Industrial-guard-stem-flared-700-royal-blue-CGG-CLR_dx29-rv.jpg Industrial Guard LED Sconce, 700-Royal Blue, CGG-Standard Cast Guard, CLR-Clear Glass 1000 1000 77455
30269 58117 product 0 42492 A 8 C 0 0 industrial_pendant_light-512x768.jpg Industrial Loft Double Pendant, 100-Black, CGG-Standard Glass, CLR-Clear Glass | Courtesy of Jones Design Company 512 768 42492
30949 61518 product 0 43182 A 8 C 0 0 blue_collar_stem_mount_pendant-667x1000.jpg 14" Blue Collar Stem Mount Pendant, 975-Galvanized, 6" Stem, CCR-Clear Crackle Glass 667 1000 43182
63668 61428 product 0 75901 A 8 C 0 0 Kitchen_1-industrial-guard-pendant-400-barn-residential-interior-kitchen.JPG Industrial Guard Pendant, 400-Barn Red | Photo Courtesy of Homeowner 3264 2448 75901
46813 58117 product 0 59046 A 9 C 0 0 atomic_topless_double_industrial_guard_sconce_textured_black_CGG_frosted7.jpg Industrial Loft Double Pendant Light, 105-Textured Black, CGG-Standard Cast Guard, FST-Frosted Glass | Photo Courtesy of @petitesol and Millimeter Photo 1500 2250 59046
57194 61428 product 0 69427 A 9 C 0 0 Industrial_Guard_Cord_Pendant_-_975_Galvanized_Barn_Light_Electric_-_Hallway_Stairway_Lighting.jpg Industrial Guard Pendant Light, 975-Galvanized, CMG-Grey Cotton, CGG-Standard Cast Guard, Ribbed Glass | Photo Courtesy of Red House Building 1500 2025 69427
57330 61518 product 0 69563 A 9 C 0 0 Blue_Collar_Stem_Mount_Pendant_-_Barn_Light_Electric_-_Industrial_Lighting.png 14" Blue Collar Stem Mount Pendant, 975-Galvanized, 6" Stem, CCR-Clear Crackle Glass 1080 1080 69563
46814 58117 product 0 59047 A 10 C 0 0 atomic_double_industrial_sconce_975_galvanized_cgg_ribbed__1_.jpg Industrial Loft Double Pendant Light, 975-Galvanized, CGG-Standard Cast Guard, RIB-Ribbed Glass | Photo Courtesy of Lio Thai from Tone on Tone 1500 2000 59047
60892 61428 product 0 73125 A 10 C 0 0 Industrial_Guard_Pendant_-_Galvanized_Barn_Light_Electric_-_Game_Room_Lighting.jpg Alliance 3-Light Chandelier, 975-Galvanized, Warehouse Shade, CGG-Standard Cast Guard in 975-Galvanized, Ribbed Glass, 12” Stem, Standard Canopy (Also pictured: Alliance 3-Light Pendant and Machine Age Galvanized Fan) | Photo Courtesy of Homeowner 1500 1125 73125
32348 61428 product 0 44581 A 11 C 0 0 industrial_guard_pendant_orb_tgg_clear_gold_white_cord.jpg Industrial Guard Pendant Light, 615-Oil-Rubbed Bronze, SBK-Standard Black Cord, Warehouse Shade, TGG-Heavy Duty Cast Guard, CLR-Clear Glass | Photo Courtesy of Between Wind and Water Design 2960 3891 44581
46811 58117 product 0 59044 A 11 C 0 0 atomic_topless_double_industrial_guard_sconce_textured_black_CGG_frosted3.jpg Industrial Loft Double Pendant, 105-Textured Black, CGG-Standard Cast Guard, FST-Frosted Glass | Photo Courtesy of @petitesol and Millimeter Photo 1500 2250 59044
32106 61428 product 0 44339 A 12 C 0 0 atomic_industrial_cord_hung_pendant_kitchen.jpg Industrial Guard Pendant Light, 975-Galvanized, Warehouse Shade, CGG-Standard Cast Guard, CLR-Clear Glass, SBK-Standard Black Cord 600 840 44339
21163 61428 product 0 33004 A 13 C 0 0 atomic_cgu_pendant_small_49_galvanized_clear_glass.jpg Industrial Guard Pendant Light, 975-Galvanized, Flared Shade, CGG-Standard Cast Guard, CLR-Clear Glass, SBK-Standard Black Cord 600 900 33004
57073 61428 product 0 69306 A 14 C 0 0 Industrial_Guard_Pendant_-_Barn_Light_Electric_-_Farmhouse_Laundry_Room_Vintage_Inspired_Lighting.JPG Industrial Guard Pendant Light, 311-Jadite, Warehouse Shade, CGG-Standard Cast Guard, RIB-Ribbed Glass, CSW-White Cloth Cord | Photo Courtesy of April Hershberger (@barnhomeliving) 1537 2049 69306
45307 61428 product 0 57540 A 15 C 0 0 Screen_Shot_2019-10-08_at_8.45.32_AM.png (2) Industrial Guard Pendant Light, 400-Barn Red Finish, SBK-Standard Black Cord, No Shade, CGG-Standard Cast Guards, CLR-Clear Glass | Photo Courtesy of Sonny’s BBQ Restaurant 635 858 57540
57074 61428 product 0 69307 A 16 C 0 0 Industrial_Guard_Pendant_Light_-_Primary_Schoolhouse_Stem_Mount_Pendant_-_Barn_Light_Electric_-_Farmhouse_Laundry_Room_Inspired_Lighting_Decor.JPG Industrial Guard Pendant Light, 311-Jadite, Warehouse Shade, CGG-Standard Cast Guard, RIB-Ribbed Glass, CSW-White Cloth Cord (Also Pictured: (2) Primary Schoolhouse Stem Mount Pendants) | Photo Courtesy of April Hershberger (@barnhomeliving) 1537 2049 69307
32105 61428 product 0 44338 A 17 C 0 0 nautical_pendants-1_6a0l-kt.jpg Industrial Guard Pendant Light, 480-Blush Pink, TGG-Heavy Duty Cast Guard, 762 1024 44338