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 (59410, 62272, 63827, 62450) 
ORDER BY 
  cscart_images_links.position, 
  cscart_images_links.pair_id

Query time 0.00149

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": 53,
          "filtered": 100,
          "index_condition": "cscart_images_links.object_type = 'product' and cscart_images_links.`type` = 'A' and cscart_images_links.object_id in (59410,62272,63827,62450)"
        }
      }
    },
    "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
3362 59410 product 0 6616 A 0 D 0 0 minimalist-copper-no-cage-pendant-brown-beige-twist.jpg Minimalist Copper Cage Pendant, No Cage, Nostalgic Edison-Style Victorian Bulb, TBB-Brown & Beige Cotton Twist Cord 1000 1000 6616
21826 62450 product 0 33708 A 0 D 0 0 BREWSTER-500-buttery-yellow-RIB-CSUW.jpg Brewster LED Pendant Light, 500-Buttery Yellow, RIB-Ribbed Glass, CSUW-Blue & White Cloth Cord 1000 1000 33708
27612 63827 product 0 39789 A 0 D 0 0 static-ring-cord-390-teal-FST-csbg.jpg Static Ring Pendant, 390-Teal, FST-Frosted Glass, CSBG-Black & Gold Cloth Cord 1000 1000 39789
29887 62272 product 0 42110 A 0 D 0 0 cherokee-cord-12in-311-Jadite-CSW.jpg 12" Cherokee, 311-Jadite, FST-Frosted Glass, CSW-White Cloth Cord 1000 1000 42110
18555 59410 product 0 30223 A 1 D 0 0 minimalist_copper_cage_pendant_resize.jpg Minimalist Pendant, TBK-Black Cotton Twist Cord, Nostalgic Edison-Style 1890 Era Bulb 600 600 30223
27611 63827 product 0 39788 A 1 D 0 0 static-ring-cord-full-build-100-black-fst-CSBW.jpg Static Ring Pendant, 100-Black, FST-Frosted Glass, CSBW-Black & White Cloth Cord 1000 1000 39788
64498 62272 product 0 76731 A 1 D 0 0 cherokee-cord-16in-975-galvanized-TWR.jpg 16" Cherokee, 975-Galvanized, FST-Frosted Glass, TRW-Red & White Cotton Twist Cord 1000 1000 76731
67228 62450 product 0 79461 A 1 D 0 0 BREWSTER-975-galvanized-CLR-CSW_qv2u-44.jpg Brewster LED Pendant Light, 975-Galvanized, CLR-Clear Glass, CSW-White Cloth Cord 1000 1000 79461
21828 62450 product 0 33710 A 2 D 0 0 BREWSTER-400-Barn-Red-FST-CRZ.jpg Brewster LED Pendant Light, 400-Barn Red, FST-Frosted Glass, CRZ-Red Chevron Cord 3840 3840 33710
22273 62272 product 0 34170 A 2 D 0 0 cherokee-cord-full-build-18in-100-black-CSBG.jpg 18" Cherokee, 100-Black, FST-Frosted Glass, CSBG-Black & Gold Cloth Cord 1000 1000 34170
27614 63827 product 0 39791 A 2 D 0 0 static-ring-cord-500-buttery-yellow-CSUW.jpg Static Ring Pendant, 500-Buttery Yellow, RIB-Ribbed Glass, CSUW-Blue & White Cloth Cord 1000 1000 39791
62252 59410 product 0 74485 A 2 D 0 0 minimalist-copper-cage-pendant-beige-brown-twist.jpg Minimalist Copper Cage Pendant with Wire Cage, Nostalgic Edison-Style Victorian Bulb, TBB-Brown & Beige Twist Cord 1000 1000 74485
21882 62450 product 0 33768 A 3 D 0 0 BREWSTER-715-Delphite-RIB-CSBW.jpg Brewster LED Pendant Light, 715-Delphite, RIB-Ribbed Glass, CSBW-Black & White Cloth Cord 1000 1000 33768
27609 63827 product 0 39786 A 3 D 0 0 static-ring-cord-490-magenta-FST-csb.jpg Static Ring Pendant, 490-Magenta, FST-Frosted Glass, CSB-Black Cloth Cord 1000 1000 39786
29889 62272 product 0 42112 A 3 D 0 0 cherokee-cord-14in-400-barn-red-CRZ.jpg 14" Cherokee, 400-Barn Red, FST-Frosted Glass, CRZ-Red Chevron Cord 1000 1000 42112
62254 59410 product 0 74487 A 3 D 0 0 minimalist-copper-no-cage-pendant-putty-twist.jpg Minimalist Copper Cage Pendant, No Cage, Nostalgic Edison-Style Victorian Bulb, TPT-Putty Cotton Twist Cord 1000 1000 74487
22272 62272 product 0 34169 A 4 D 0 0 cherokee-cord-18in-705-navy-CSGW.jpg 18" Cherokee, 705-Navy, FST-Frosted Glass, CSGW-Gold & White Cloth Cord 1000 1000 34169
27608 63827 product 0 39785 A 4 D 0 0 static-ring-cord-200-white-CSW.jpg Static Ring Pendant, 200-White, RIB-Ribbed Glass, CSW-White Cloth Cord 1000 1000 39785
62253 59410 product 0 74486 A 4 D 0 0 minimalist-copper-cage-pendant-black-white-twist.jpg Minimalist Copper Cage Pendant with Wire Cage, Nostalgic Edison-Style Victorian Bulb, TBW-Black & White Cotton Twist Cord 1000 1000 74486
67229 62450 product 0 79462 A 4 D 0 0 BREWSTER-997-brass-100-black-FST-CSBG_yr58-zi.jpg Brewster LED Pendant Light, 997-Natural Raw Brass, FST-Frosted Glass, CSBW-Black & White Cloth Cord, Canopy in 100-Black 1000 1000 79462
22271 62272 product 0 34168 A 5 D 0 0 cherokee-cord-12in-500-buttery-yellow-CSBW.jpg 12" Cherokee, 500-Buttery Yellow, FST-Frosted Glass, CSBW-Black & White Cloth Cord 1000 1000 34168
27613 63827 product 0 39790 A 5 D 0 0 static-ring-cord-307-emerald-bulb-CSBB.jpg Static Ring Pendant, 307-Emerald Green, CSBB-Black & Brown Cloth Cord, Nostalgic Edison-Style 1890 Era 40 Watt Light Bulb 1000 1000 39790
30050 62450 product 0 42273 A 5 D 0 0 BREWSTER-307-emerald-green-FST-CSGW.jpg Brewster LED Pendant Light, 307-Emerald Green, FST-Frosted Glass, CSGW-Gold & White Cloth Cord 1000 1000 42273
62257 59410 product 0 74490 A 5 D 0 0 minimalist-copper-no-cage-pendant-brown-twist.jpg Minimalist Copper Cage Pendant, No Cage, Nostalgic Edison-Style Victorian Bulb, TBR-Brown Cotton Twist Cord 1000 1000 74490
21070 62272 product 0 32911 A 6 D 0 0 cherokee-cord-14in-700-royal-CSUW.jpg 14" Cherokee, 700-Royal Blue, FST-Frosted Glass, CSUW-Blue & White Cloth Cord 1000 1000 32911
21827 62450 product 0 33709 A 6 D 0 0 BREWSTER-200-white-RIB-SWH.jpg Brewster LED Pendant Light, 200-White, RIB-Ribbed Glass, SWH-Standard White Cord 1000 1000 33709
27617 63827 product 0 39794 A 6 D 0 0 static-ring-cord-705-navy-bulb-CSGW.jpg Static Ring Pendant, 705-Navy, CSGW-Gold & White Cloth Cord, Nostalgic Edison-Style 1890 Era 40 Watt Light Bulb 1000 1000 39794
62255 59410 product 0 74488 A 6 D 0 0 minimalist-copper-cage-pendant-red-twist.jpg Minimalist Copper Cage Pendant with Wire Cage, Nostalgic Edison-Style Victorian Bulb, TRD-Red Cotton Twist Cord 1000 1000 74488
30051 62450 product 0 42274 A 7 D 0 0 BREWSTER-600-Bronze-FST-CSBB.jpg Brewster LED Pendant Light, 600-Bronze, FST-Frosted Glass, CSBB-Black & Brown Cloth Cord 1000 1000 42274
54088 62272 product 0 66321 A 7 C 0 0 cherokee_uplight_pendant_16in_galvanized_SWH-clearglass2.jpg 16" Cherokee Pendant, 975-Galvanized, Clear Glass, SWH-White Cloth Cord | Photo Courtesy of von Weise Associates 1155 781 66321
62256 59410 product 0 74489 A 7 D 0 0 minimalist-copper-no-cage-pendant-white-twist.jpg Minimalist Copper Cage Pendant, No Cage, Nostalgic Edison-Style Victorian Bulb, TWH-White Cotton Twist Cord 1000 1000 74489
68373 63827 product 0 80606 A 7 C 0 0 residential-interior-lighting-on-bathroom-vanity-Static-Ring-Pendant-100-Black-Frosted-Glass.jpg Static Ring Pendant, 100-Black, FST-Frosted Glass | Photo Courtesy of Kelly Horkoff 1500 2249 80606
60948 62450 product 0 73181 A 8 C 0 0 Brewster_LED_Pendant_Light_-_Barn_Light_Electric_-_Restaurant_Lighting.jpg Brewster LED Pendant, 710-Cobalt Blue PTMP, Ribbed Glass, SBK-Standard Black Cord, 2700K Color Temperature | Photo Courtesy of Boneyard Saloon in Park City, Utah (@boneyardsaloon) 1242 1204 73181
64542 59410 product 0 76775 A 8 C 0 0 minimalist-copper-cage-cord-pendant-on-commercial-interior_crvq-r4.jpg Minimalist Copper Cage Pendant, Wire Cage, Brown Cotton Twist Cord, Edison Light Bulb 1500 2250 76775
68213 62272 product 0 80446 A 8 C 0 0 9A2B359C-residential-interior-lighting-on-bathroom-vanity-Cherokee-Uplight-Pendant-14in-200-White-SWH-Frosted-Glass.jpg 14" Cherokee Uplight Pendant, 200-White, Standard White Cord, Frosted Glass | Customer Submission 3024 4032 80446
68374 63827 product 0 80607 A 8 C 0 0 residential-interior-lighting-on-bathroom-vanity-Static-Ring-Pendant-100-Black-Frosted-Glass-2.jpg Static Ring Pendant, 100-Black, FST-Frosted Glass | Photo Courtesy of Kelly Horkoff 1500 1840 80607
54086 62272 product 0 66319 A 9 C 0 0 cherokee_uplight_pendant_16in_galvanized_SWH-clearglass__1_.jpg 16" Cherokee Pendant, 975-Galvanized, Clear Glass, SWH-White Cloth Cord | Photo Courtesy of von Weise Associates 1365 2048 66319
60949 62450 product 0 73182 A 9 C 0 0 Brewster_LED_Pendant_Light_-_Barn_Light_Electric_-_Commercial_Restaurant_Lighting.jpg Brewster LED Pendant, 710-Cobalt Blue PTMP, Ribbed Glass, SBK-Standard Black Cord, 2700K Color Temperature | Photo Courtesy of Boneyard Saloon in Park City, Utah (@boneyardsaloon) 1242 1211 73182
61431 63827 product 0 73664 A 9 C 0 0 Static_Ring_Pendant_Light_-_Barn_Light_Electric_-_Shop_lighting.JPG Static Ring Pendant, 975-Galvanized, Clear Glass, CMG-Grey Cloth Cord | Photo Courtesy of Customer 1513 1155 73664
62199 59410 product 0 74432 A 9 C 0 0 Minimalist_Copper_Cage_Pendant_TBK_Wire_Cage_Victorian_60W_Edison6.jpg Minimalist Copper Cage Pendant, Wire Cage, TBK-Black Cotton Twist Cord, 60W Edison Style Victorian Bulb | Photo Courtesy of Homeowner 1500 1125 74432
54087 62272 product 0 66320 A 10 C 0 0 cherokee_uplight_pendant_16in_galvanized_SWH-clearglass4.jpg 16" Cherokee Pendant, 975-Galvanized, Clear Glass, SWH-White Cloth Cord | Photo Courtesy of von Weise Associates 1479 2048 66320
60950 62450 product 0 73183 A 10 C 0 0 Brewster_LED_Pendant_-_Barn_Light_Electric_-_Restaurant_Lighting.jpg Brewster LED Pendant, 710-Cobalt Blue PTMP, Ribbed Glass, SBK-Standard Black Cord, 2700K Color Temperature | Photo Courtesy of Boneyard Saloon in Park City, Utah (@boneyardsaloon) 1242 1207 73183
61432 63827 product 0 73665 A 10 C 0 0 Static_Ring_Pendant_Light_-_Barn_Light_Electric_-_Interior_Lighting.JPG Static Ring Pendant, 975-Galvanized, Clear Glass, CMG-Grey Cloth Cord | Photo Courtesy of Customer 1150 816 73665
62200 59410 product 0 74433 A 10 C 0 0 Minimalist_Copper_Cage_Pendant_TBK_Wire_Cage_Victorian_60W_Edison7.jpg Minimalist Copper Cage Pendant, Wire Cage, TBK-Black Cotton Twist Cord, 60W Edison Style Victorian Bulb | Photo Courtesy of Homeowner 1500 2000 74433
68673 63827 product 0 80906 A 10 C 0 0 IMG_6342-residential-interior-lighting-bathroom-vanity-Static-Ring-Pendant-400-Barn-Red-Red-Cotton-Twist-TRD-Frosted-Glass.jpg Static Ring Pendant, 400-Barn Red, FST-Frosted Glass, TRD-Red Cotton Twist Cord | Photo Courtesy of Customer 1500 1125 80906
18554 59410 product 0 30222 A 11 C 0 0 Cage-Pendants.jpg Minimalist Copper Cage Pendant 600 801 30222
47575 62272 product 0 59808 A 11 C 0 0 Cherokee_Uplight_Cord_Hung_Pendants_-_Barn_Light_Electric.jpg (10) 12” Cherokee, 975-Galvanized Finish, Frosted Glass, White Cords | Photo Courtesy of Salt Architecture 1024 681 59808
41701 62272 product 0 53934 A 12 C 0 0 ceiling_lighting_barn_lights-768x511.jpg (9) 12” Cherokee, 975-Galvanized Finish, Frosted Glass, White Cords | Photo Courtesy of Salt Architecture 768 511 53934
66796 59410 product 0 79029 A 12 C 0 0 IMG_1283-residential-interior-lighting-kitchen-island-on-Minimalist-Copper-Cage-Pendant-Black-Cotton-Twist-Wire-Cage-1910-Era-60w-Edison-Bulb.jpg Minimalist Copper Cage Pendant, Black Cotton Twist, Wire Cage, 1910 Era 60w Edison Bulb | Customer Submission 1324 1899 79029
21130 62272 product 0 32971 A 13 C 0 0 16-in-cherokee-bronze.jpg 16" Cherokee Pendant, 600-Bronze 650 950 32971
64543 59410 product 0 76776 A 13 C 0 0 minimalist-copper-cage-cord-pendant-on-commercial-interior.jpg Minimalist Copper Cage Pendant, Wire Cage, Brown Cotton Twist Cord, Edison Light Bulb 1500 2250 76776
28567 62272 product 0 40766 A 14 C 0 0 354B1510.jpg 16" Cherokee Pendants, 490-Magenta, SWH-Standard White Cord 667 1000 40766
66797 59410 product 0 79030 A 14 C 0 0 IMG_1284-residential-interior-lighting-kitchen-island-on-Minimalist-Copper-Cage-Pendant-Black-Cotton-Twist-Wire-Cage-1910-Era-60w-Edison-Bulb.jpg Minimalist Copper Cage Pendant, Black Cotton Twist, Wire Cage, 1910 Era 60w Edison Bulb | Customer Submission 1512 2016 79030