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 (62350, 61413, 63237, 61416) 
ORDER BY 
  cscart_images_links.position, 
  cscart_images_links.pair_id

Query time 0.00113

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": 63,
          "filtered": 100,
          "index_condition": "cscart_images_links.object_type = 'product' and cscart_images_links.`type` = 'A' and cscart_images_links.object_id in (62350,61413,63237,61416)"
        }
      }
    },
    "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
16044 61416 product 0 27564 A 0 D 0 0 double-market-sconce-flared-100-black-490-magenta-CGG-RIB.jpg Double Market Industrial Guard Sconce, 100-Black, Flared Shade, CGG-Standard Cast Guard, 490-Magenta, RIB-Ribbed Glass 1000 1000 27564
16079 61413 product 0 27599 A 0 D 0 0 atomic-topless-double-industrial-sconce-307-emerald-TGG-RIB.jpg Atomic Topless Double Industrial Guard Sconce, 307-Emerald Green, TGG-Heavy Duty Cast Guard, RIB-Ribbed Glass 1000 1000 27599
24403 62350 product 0 36384 A 0 D 0 0 double-loft-307-emerald-CGG-RIB.jpg Industrial Loft LED Double Pendant, 307-Emerald Green, CGG-Standard Cast Guard, RIB-Ribbed Glass 1000 1000 36384
65398 63237 product 0 77631 A 0 D 0 0 2-Arm-Vanities-Straight-On-arm-500-buttery-yellow-CGG-RIB.jpg Industrial Guard LED Double Vanity Light, 500-Buttery Yellow, CGG-Standard Cast Guard, RIB-Ribbed Glass 1000 1000 77631
24970 63237 product 0 37046 A 1 D 0 0 atomic-straight-arm-double-vanity-flared-100-black-975-galvanized-CGG-FST_ecwm-yg.jpg Industrial Guard LED Double Vanity Light, 100-Black, CGG-Standard Cast Guard, 975-Galvanized, FST-Frosted Glass 1000 1000 37046
65589 62350 product 0 77822 A 1 D 0 0 double-loft-975-galvanized-390-teal-CGG-RIB-alt.jpg Industrial Loft LED Double Pendant, 975-Galvanized, CGG-Standard Cast Guard, 390-Teal, CGG-Standard Cast Guard, RIB-Ribbed Glass 1000 1000 77822
65627 61413 product 0 77860 A 1 D 0 0 atomic-topless-double-industrial-sconce-100-black-CGG-FST-profile-alt.jpg Atomic Topless Double Industrial Guard Sconce, 100-Black, CGG-Standard Cast Guard, FST-Frosted Glass (Note: Product is CSA listed for damp location use when mounted vertically as shown) 1000 1000 77860
71037 61416 product 0 83270 A 1 D 0 0 double-market-industrial-sconce-topless-630-Beige.jpg Double Market Industrial Guard Sconce, 630-Beige, Topless Shade, CGG-Standard Cast Guard, FST-Frosted Glass 1000 1000 83270
16054 61416 product 0 27574 A 2 D 0 0 double-market-industrial-sconce-topless-705-navy-CGG-RIB.jpg Double Market Industrial Guard Sconce, 705-Navy, Topless Shade, CGG-Standard Cast Guard, RIB-Ribbed 1000 1000 27574
32152 63237 product 0 44385 A 2 D 0 0 2-Arm-Vanities-Straight-On-arm-200-white-WGG-RIB_hpxk-cs.jpg Industrial Guard LED Double Vanity Light, 200-White, WGG-Wire Guard, RIB-Ribbed Glass 1000 1000 44385
65587 62350 product 0 77820 A 2 D 0 0 double-loft-490-magenta-WGG-RIB_rgc2-bp.jpg Industrial Loft LED Double Pendant, 490-Magenta, WGG-Wire Guard, RIB-Ribbed Glass 1000 1000 77820
65622 61413 product 0 77855 A 2 D 0 0 atomic-topless-double-industrial-sconce-705-navy-490-magenta-CGG-RIB_zyqq-40.jpg Atomic Topless Double Industrial Guard Sconce, 705-Navy, CGG-Standard Cast Guard, 490-Magenta, RIB-Ribbed Glass 1000 1000 77855
21201 61413 product 0 33082 A 3 D 0 0 atomic-topless-double-industrial-sconce-500-buttery-yellow-CGG-RIB.jpg Atomic Topless Double Industrial Guard Sconce, 500-Buttery Yellow, CGG-Standard Cast Guard, RIB-Ribbed Glass 1000 1000 33082
21354 62350 product 0 33235 A 3 D 0 0 atomic-double-loft-100-black-500-yellow-cgg-rib.jpg Industrial Loft LED Double Pendant, 100-Black, CGG-Standard Cast Guard, 500-Buttery Yellow, RIB-Ribbed Glass 1000 1000 33235
32122 61416 product 0 44355 A 3 D 0 0 double-market-industrial-sconce-topless-400-barn-red-CGG-FST.jpg Double Market Industrial Guard Sconce, 400-Barn Red, Topless Shade, CGG-Standard Cast Guard, FST-Frosted Glass 1000 1000 44355
65396 63237 product 0 77629 A 3 D 0 0 2-Arm-Vanities-Straight-On-arm-400-barn-Red-CGG-FST_qrmu-2l.jpg Industrial Guard LED Double Vanity Light, 400-Barn Red, CGG-Standard Cast Guard, FST-Frosted Glass 1000 1000 77629
16052 61413 product 0 27572 A 4 D 0 0 atomic-topless-double-industrial-sconce-200-white-CGG-FST.jpg Atomic Topless Double Industrial Guard Sconce, 200-White, CGG-Standard Cast Guard, FST-Frosted Glass 1000 1000 27572
32120 61416 product 0 44353 A 4 D 0 0 double-market-industrial-sconce-flared-500-buttery-yellow-CGG-RIB.jpg Double Market Industrial Guard Sconce, 500-Buttery Yellow, Flared Shade, CGG-Standard Cast Guard, RIB-Ribbed Glass 1000 1000 44353
65586 62350 product 0 77819 A 4 D 0 0 double-loft-400-barn-red-CGG-FST_ul7b-7v.jpg Industrial Loft LED Double Pendant, 400-Barn Red, CGG-Standard Cast Guard, FST-Frosted Glass 1000 1000 77819
16050 61413 product 0 27570 A 5 D 0 0 atomic-topless-double-industrial-sconce-100-black-WGG-RIB.jpg Atomic Topless Double Industrial Guard Sconce, 100-Black, WGG-Wire Guard, RIB-Ribbed Glass 1000 1000 27570
16078 61416 product 0 27598 A 5 D 0 0 double-market-sconce-warehouse-100-black-975-galvanized-CGG-FST.jpg Double Market Industrial Guard Sconce, 100-Black, Warehouse Shade, CGG-Standard Cast Guard, 975-Galvanized, FST-Frosted Glass 1000 1000 27598
65395 63237 product 0 77628 A 5 D 0 0 2-Arm-Vanities-Straight-On-arm-307-emerald-CGG-RIB_m7om-uw.jpg Industrial Guard LED Double Vanity Light, 307-Emerald Green, CGG-Standard Cast Guard, RIB-Ribbed Glass 1000 1000 77628
65590 62350 product 0 77823 A 5 D 0 0 double-loft-975-galvanized-CGG-FST_9xo6-2p.jpg Industrial Loft LED Double Pendant, 975-Galvanized, CGG-Standard Cast Guard, FST-Frosted Glass 1000 1000 77823
65399 63237 product 0 77632 A 6 D 0 0 2-Arm-Vanities-Straight-On-arm-705-navy-CGG-CLR_z7rk-to.jpg Industrial Guard LED Double Vanity Light, 705-Navy, CGG-Standard Cast Guard, CLR-Clear Glass 1000 1000 77632
65576 61416 product 0 77809 A 6 D 0 0 double-market-industrial-sconce-warehouse-200-white-WGG-RIB.jpg Double Market Industrial Guard Sconce, 200-White, Warehouse Shade, WGG-Wire Guard, RIB-Ribbed Glass 1000 1000 77809
65588 62350 product 0 77821 A 6 D 0 0 double-loft-705-navy-CGG-CLR_ztmf-wp.jpg Industrial Loft LED Double Pendant, 705-Navy, CGG-Standard Cast Guard, CLR-Clear Glass 1000 1000 77821
65628 61413 product 0 77861 A 6 D 0 0 atomic-topless-double-industrial-sconce-300-dark-green-CGG-FST.jpg Atomic Topless Double Industrial Guard Sconce, 300-Dark Green, CGG-Standard Cast Guard, FST-Frosted Glass (Note: Product is CSA listed for damp location use when mounted vertically as shown) 1000 1000 77861
21202 61413 product 0 33083 A 7 D 0 0 atomic-topless-double-industrial-sconce-400-barn-red-CGG-FST.jpg Atomic Topless Double Industrial Guard Sconce, 400-Barn Red, CGG-Standard Cast Guard, FST-Frosted Glass 1000 1000 33083
32121 61416 product 0 44354 A 7 D 0 0 double-market-industrial-sconce-flared-307-TGG-RIB.jpg Double Market Industrial Guard Sconce, 307-Emerald Green, Flared Shade, TGG-Heavy Duty Cast Guard, RIB-Ribbed Glass 1000 1000 44354
58967 62350 product 0 71200 A 7 C 0 0 Industrial_Loft_LED_Double_Pendant_-_Barn_Light_Electric_-_Front_Door_Lighting.jpeg ndustrial Loft Double Pendant, 200-White, CGG-Standard Cast Guard, FST-Frosted Glass | Photo Courtesy of John Colaneri 3024 4032 71200
51993 61416 product 0 64226 A 8 C 0 0 Raili_Clasen_-_Double_Market_Industrial_Guard_Sconce_-_Sunflower_-_Bedroom.png Double Market Industrial Guard Sconce, 570-Sunflower, No Shade, CGG-Standard Cast Guard, CLR-Clear Glass | Photo Courtesy of Raili CA Design 472 593 64226
58968 62350 product 0 71201 A 8 C 0 0 Industrial_Loft_LED_Double_Pendant_-_Barn_Light_Electric_-_Front_Porch_Lighting.jpeg ndustrial Loft Double Pendant, 200-White, CGG-Standard Cast Guard, FST-Frosted Glass | Photo Courtesy of John Colaneri 3024 4032 71201
63713 61413 product 0 75946 A 8 C 0 0 6-residential-interior-bathroom-vanity-lighting-atomic-topless-double-industrial-guard-sconce-105-Textured-Black-frosted-glass.jpg Atomic Topless Double Industrial Guard, 105-Textured Black, FST-Frosted Glass | Photo Courtesy of Honey and Ace 4299 6466 75946
52006 61413 product 0 64239 A 9 C 0 0 Atomic_Topless_Double_Industrial_Guard_Sconces_-_Dark_Green.png Atomic Topless Double Industrial Guard Sconce, 300-Dark Green, TGG-Heavy Duty Guard | Photo Courtesy of Brian Patrick Flynn (Note: Product is CSA listed for damp location use when mounted vertically as shown) 475 594 64239
58969 62350 product 0 71202 A 9 C 0 0 Industrial_Loft_LED_Double_Pendant_-_Barn_Light_Electric_-_Exterior_Lighting.jpeg ndustrial Loft Double Pendant, 200-White, CGG-Standard Cast Guard, FST-Frosted Glass | Photo Courtesy of John Colaneri 3024 4032 71202
61547 61416 product 0 73780 A 9 C 0 0 Double_Market_Industrial_Guard_Sconce_-_Barn_Light_Electric_-_Nautical_Bathroom_Vanity_Lighting.jpg Double Market Industrial Guard Sconce, 200-White, Warehouse Shade, WGG-Wire Guard, CLR-Clear Guard | Photo Courtesy of Parker Jones Interiors 1536 2049 73780
54141 61413 product 0 66374 A 10 C 0 0 Urban-Putt-24-atomic-topless-double-industrial-guard-sconce-105-textured-black-standard-cast-guard-commercial-interior-restaurant-bar-mini-golf-brick.jpg Atomic Topless Double Industrial Guard Sconce, 105-Textured Black, CGG-Standard Cast Guard, Ribbed Glass | Photo Courtesy of Urban Putt and Visual Interest (Note: Product is CSA listed for damp location use when mounted vertically as shown) 3811 5716 66374
58970 62350 product 0 71203 A 10 C 0 0 Industrial_Loft_LED_Double_Pendant_-_Barn_Light_Electric_-_Exterior_Front_Porch_Lighting.jpg ndustrial Loft Double Pendant, 200-White, CGG-Standard Cast Guard, FST-Frosted Glass | Photo Courtesy of John Colaneri 3409 5113 71203
61353 61416 product 0 73586 A 10 C 0 0 Double_Market_Industrial_Guard_Sconce_-_Barn_Light_Electric_-_Bathroom_Vanity_Lighting.jpg Double Market Industrial Guard Sconce, 307-Emerald, No Shade, CGG-Standard Cast Guard, FST-Frosted Guard | Photo Courtesy of Rachel Reider Interiors 667 1000 73586
60040 61413 product 0 72273 A 11 C 0 0 Atomic_Topless_Double_Industrial_Guard_Sconce_-_Barn_Light_Electric_-_Bathroom_Lighting.jpeg Atomic Topless Double Industrial Guard Sconce, 400-Barn Red, CGG-Standard Cast Guard | Photo Courtesy of Forest+Ash Design and Mainescape Media 5186 3893 72273
61548 61416 product 0 73781 A 11 C 0 0 Double_Market_Industrial_Guard_Sconce_-_Barn_Light_Electric_-_Bathroom_Vanity_Lighting_tuhi-r5.jpg Double Market Industrial Guard Sconce, 200-White, Warehouse Shade, WGG-Wire Guard, CLR-Clear Guard | Photo Courtesy of Parker Jones Interiors 1536 2049 73781
28575 61413 product 0 40774 A 12 C 0 0 354B7900.jpg Atomic Topless Double Industrial Guard Sconce, 975-Galvanized, WGG-Wire Guard, SMK-Smoke Crackle Glass 1000 667 40774
32123 61416 product 0 44356 A 12 C 0 0 atomic_wall_sconces_rustic_wall_lights-1024x877.jpg Double Market Industrial Guard Sconce, 400-Barn Red, No Shade, TGG-Heavy Duty Cast Guard, RIB-Ribbed Guard 1024 877 44356
32433 61416 product 0 44666 A 13 C 0 0 atomic_double_market_industrial_guard_sconce_barn_red_WGG_clear2.jpg (2) Double Market Industrial Guard Sconces, 400-Barn Red, WH-Warehouse Shade, WGG-Wire Guard, CLR-Clear Glass | Photo Courtesy of Harper & Hicks 1500 2249 44666
62895 61413 product 0 75128 A 13 C 0 0 4M5A1258-Commercial-Interior-Restaurant-BBQ-Bathroom-Atomic-Topless-Double-Industrial-Guard-Sconce-400-Barn-Red.jpg Atomic Topless Double Industrial Guard Sconce, 400-Barn Red, CGG-Standard Cast Guard, CLR-Clear Glass 1500 2250 75128
44346 61413 product 0 56579 A 14 C 0 0 atomic_topless_double_wireguard_sconce_bathroom.jpg Atomic Topless Double Industrial Guard Sconce, 975-Galvanized, WGG-Wire Guard 600 900 56579
61554 61416 product 0 73787 A 14 C 0 0 Double_Market_Industrial_Guard_Sconce_-_700_Royal_Blue_Barn_Light_Electric_-_Bathroom_Vanity_Sconce.jpg Double Market Industrial Guard Sconce, 700-Royal Blue, Warehouse Shade, WGG-Wire Guard, RIB-Ribbed Guard | Photo Courtesy of Homeowner 1500 2000 73787
57077 61413 product 0 69310 A 15 C 0 0 primary_schoolhouse_semiflush_400-barnred_WGG_clearglass_atomic_topless_double_industrial_guard_sconce_400-barnred_WGG_clearglass2.JPG Atomic Topless Double Industrial Guard Sconce, 400-Barn Red, WGG-Wire Guard (Also Pictured: Primary Schoolhouse Semi-Flush Mount Light) | Photo Courtesy April Hershberger (@barnhomeliving) 1537 2049 69310
61553 61416 product 0 73786 A 15 C 0 0 Double_Market_Industrial_Guard_Sconce_-_700_Royal_Blue_Barn_Light_Electric_-_Bathroom_Lighting.jpg Double Market Industrial Guard Sconce, 700-Royal Blue, Warehouse Shade, WGG-Wire Guard, RIB-Ribbed Guard | Photo Courtesy of Homeowner 1500 2000 73786
37572 61416 product 0 49805 A 16 C 0 0 rustic_wall_sconce_commercial_lighting-512x768.jpg Double Market Industrial Guard Sconce, 605-Rust, FS-Flared Shade | Courtesy of The Salvage Room 512 768 49805
46024 61413 product 0 58257 A 16 C 0 0 Atomic_Topless_Double_Industrial_Guard_Sconce_-_Barn_Light_Electric_7xr5-b3.jpeg Atomic Topless Double Industrial Guard Sconce, 311-Jadite, CGG-Standard Cast Guard, CLR-Clear Glass | Photo Courtesy of Homeowner 3521 5281 58257
18204 61413 product 0 29833 A 17 C 0 0 double-industrial-guard-sconce-customer-submission.jpg Atomic Topless Double Industrial Guard Sconce, 975-Galvanized, TGG-Heavy Duty Cast Guard, CLR-Clear Glass 700 500 29833
65473 61416 product 0 77706 A 17 C 0 0 residential-interior-lighting-bathroom-vanity-Double-Market-Industrial-Guard-Sconce-705-Navy-Warehouse-CGG-Clear-Glass.jpg Double Market Industrial Guard Sconce - 705-Navy, Warehouse, Standard Cast Guard, Clear Glass | Photo Courtesy of Homeowner 1500 2000 77706
46809 61413 product 0 59042 A 18 C 0 0 industrial_loft_double_sconce_exterior__1_.jpg Customer Submission from Roscoe, New York 654 701 59042
62273 61416 product 0 74506 A 18 C 0 0 Double_Market_Industrial_Guard_Sconce_105_TexturedBlack_CFF_ClearGlass.jpg Double Market Industrial Guard Sconce, 105-Textured Black, CLR-Clear Glass | Photo Courtesy of J&J Photography 1500 2250 74506
46810 61413 product 0 59043 A 19 C 0 0 atomic_topless_double_indsutrial_guard_sconce_txtrdblack_cgg_clearcrackleglass5.jpeg Industrial Loft Double Pendant, 100-Black, CGG-Standard Cast Guard, Frosted Glass | Courtesy of Customer (Note: Product is CSA listed for damp location use when mounted vertically as shown) 3112 4053 59043
65276 61416 product 0 77509 A 19 C 0 0 residential-interior-lighting-bathroom-vanity-Double-Market-Industrial-Guard-Sconce-100-Black-Flared-Wire-Guard-Clear-Glass.jpg Double Market Industrial Guard Sconce, 100-Black, Flared Wire Guard, Clear Glass | Photo Courtesy of Homeowner 1500 1125 77509
49181 61413 product 0 61414 A 20 C 0 0 rustic_wall_sconce_lighting.jpg Atomic Topless Double Industrial Guard Sconce, 500-Buttery Yellow, CGG-Standard Cast Guard | Photo Courtesy of Homeowner 1024 814 61414
65635 61416 product 0 77868 A 20 C 0 0 residential-interior-lighting-bathroom-vanity-Double-Market-Industrial-Guard-Sconce-705-Navy-Warehouse-CGG-Clear-Glass-Towel-Bar-Toilet-Paper-Holder-705-Navy.jpg Double Market Industrial Guard Sconce - 705-Navy, Warehouse, Standard Cast Guard, Clear Glass | Photo Courtesy of Homeowner 1500 2000 77868
56899 61413 product 0 69132 A 21 C 0 0 Atomic_Topless_Double_Industrial_Guard_Sconce_-_Barn_Light_Electric_-_Bathroom_Vanity_Sconce_Lighting.JPG Atomic Topless Double Industrial Guard Sconce, 100-Black, CGG-Standard Cast Guard, Frosted Glass | Photo Courtesy of Homeowner 2228 2398 69132
54155 61413 product 0 66388 A 22 C 0 0 double-industrial-guard-sconce.jpeg Atomic Topless Double Industrial Guard Sconce, 975-Galvanized, TGG-Heavy Duty Cast Guard | Photo Courtesy of Homeowner 4721 3214 66388
68545 61413 product 0 80778 A 22 C 0 0 IMG-1855-commercial-interior-lighting-hotel-Atomic-Topless-Double-Industrial-Guard-Sconce-400-Barn-Red-CGG-400-Barn-Red-Frosted-Glass.jpg Atomic Topless Double Industrial Guard Sconce, 400-Barn Red, CGG-Standard Cast Guard, FST-Frosted Glass | Photo Courtesy of The Hostel Hotel 1500 1078 80778
69174 61413 product 0 81407 A 22 C 0 0 IMG_3377-commercial-interior-lighting-on-hotel-Atomic-Topless-Double-Industrial-Guard-Sconce-400-Barn-Red-CGG-Frosted-Glass-Wallaby-Gooseneck-12in-400-Barn-Red-G3arm.jpg Atomic Topless Double Industrial Guard Sconce, 400-Barn Red, CGG-Standard Cast Guard, FST-Frosted Glass 1500 2000 81407