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 (
    65851, 65884, 65870, 65875, 65853, 65864, 
    65877, 65874, 65863, 65869, 65868, 
    65862, 65850, 65880, 65852, 65855, 
    65892, 65896, 65854, 65895, 65866, 
    65857, 65876, 65858
  ) 
ORDER BY 
  cscart_images_links.position, 
  cscart_images_links.pair_id

Query time 0.00132

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": 56,
          "filtered": 100,
          "index_condition": "cscart_images_links.object_type = 'product' and cscart_images_links.`type` = 'A' and cscart_images_links.object_id in (65851,65884,65870,65875,65853,65864,65877,65874,65863,65869,65868,65862,65850,65880,65852,65855,65892,65896,65854,65895,65866,65857,65876,65858)"
        }
      }
    },
    "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
70145 65850 product 0 82378 A 0 D 0 0 LED-bulbs-ST19-Clear-Spiral-250-Lumens-2100K-off-GreenCreative.jpg LED Clear ST19 250 Lumen Bulb - Off 1000 1000 82378
70146 65851 product 0 82379 A 0 D 0 0 LED-bulbs-ST19-Amber-Spiral-250-Lumens-2000K-off-GreenCreative.jpg LED Amber ST19 250 Lumen Bulb - Off 1000 1000 82379
70148 65852 product 0 82381 A 0 D 0 0 LED-bulbs-ST19-Smoky-Spiral-150-Lumens-4000K-off-GreenCreative.jpg LED Smoke ST19 150 Lumen Bulb - Off 1000 1000 82381
70150 65853 product 0 82383 A 0 D 0 0 LED-bulbs-G40-Clear-Spiral-250-Lumens-2100K-off-GreenCreative.jpg LED Clear G40 250 Lumen Bulb - Off 1000 1000 82383
70152 65854 product 0 82385 A 0 D 0 0 LED-bulbs-A50-Clear-Spiral-300-Lumens-2100K-off-GreenCreative.jpg LED Clear A50 300 Lumen Bulb - Off 1000 1000 82385
70154 65855 product 0 82387 A 0 D 0 0 LED-bulbs-A50-Amber-Spiral-300-Lumens-2000K-off-GreenCreative.jpg LED Amber A50 300 Lumen Bulb - Off 1000 1000 82387
70159 65857 product 0 82392 A 0 D 0 0 LED-bulbs-G63-Clear-Spiral-300-Lumens-2100K-off-GreenCreative.jpg LED Clear G63 300 Lumen Bulb - Off 1000 1000 82392
70161 65858 product 0 82394 A 0 D 0 0 LED-bulbs-G63-Amber-Spiral-300-Lumens-2000K-off-GreenCreative.jpg LED Amber G63 300 Lumen Bulb - Off 1000 1000 82394
70169 65862 product 0 82402 A 0 D 0 0 LED-bulbs-Ribbed-Clear-Edison-500-Lumens-2000K-off-GreenCreative.jpg LED Ribbed R32 500 Lumen Bulb - Off 1000 1000 82402
70171 65863 product 0 82404 A 0 D 0 0 LED-bulbs-Crystal-Clear-Edison-500-Lumens-2000K-off-GreenCreative.jpg LED Crystal Clear C35 500 Lumen Bulb - Off 1000 1000 82404
70173 65864 product 0 82406 A 0 D 0 0 LED-bulbs-T10-Amber-Helix-450-Lumens-2000K-off-GreenCreative.jpg LED Amber T10 450 Lumen Bulb - Off 1000 1000 82406
70177 65866 product 0 82410 A 0 D 0 0 LED-bulbs-A19-Clear-XX-1150-Lumens-2700K-off-GreenCreative.jpg LED Clear A19 1150 Lumen Bulb - Off 1000 1000 82410
70181 65868 product 0 82414 A 0 D 0 0 LED-bulbs-G25-Chrome-Edison-400-Lumens-2700K-off-GreenCreative.jpg LED Silver Bowl G25 400 Lumen Bulb - Off 1000 1000 82414
70183 65869 product 0 82416 A 0 D 0 0 LED-bulbs-G25-Clear-Edison-400-Lumens-2700K-off-GreenCreative.jpg LED Clear G25 350 Lumen Bulb - Off 1000 1000 82416
70185 65870 product 0 82418 A 0 D 0 0 LED-bulbs-G40-Clear-Edison-500-Lumens-2700K-off-GreenCreative.jpg LED Clear G40 500 Lumen Bulb - Off 1000 1000 82418
70295 65874 product 0 82528 A 0 D 0 0 LED-bulbs-B11-Clear-200-Lumens-2700K-off-GreenCreative.jpg LED Clear B11 200 Lumen Bulb - Off 1000 1000 82528
70297 65875 product 0 82530 A 0 D 0 0 LED-bulbs-B11-White-300-Lumens-2700K-off-GreenCreative.jpg LED Frosted B11 300 Lumen Bulb - Off 1000 1000 82530
70299 65876 product 0 82532 A 0 D 0 0 LED-bulbs-B11-Clear-500-Lumens-2700K-off-GreenCreative.jpg LED Clear B11 500 Lumen Bulb - Off 1000 1000 82532
70301 65877 product 0 82534 A 0 D 0 0 LED-bulbs-B11-Clear-Edison-500-Lumens-2700K-off-GreenCreative.jpg LED Clear B11 500 Lumen Bulb - E26 Base - Off 1000 1000 82534
70307 65880 product 0 82540 A 0 D 0 0 LED-bulbs-A19-Half-Chrome-Edison-700-Lumens-2700K-off-GreenCreative.jpg LED Silver Bowl A19 700 Lumen Bulb - Off 1000 1000 82540
72013 65884 product 0 84246 A 0 D 0 0 Duo-Loma-sconce-LED-10in-100-Black-200-white-maple-wood-ring.jpg Duo LED Sconce, Top in 100-Black, Bottom in 200-White, Maple Wood Ring, Mounting in 100-Black 1000 1000 84246
72015 65884 product 0 84248 A 0 D 0 0 Duo-Loma-sconce-LED-10in-995-raw-copper-630-Beige_u5yu-77_3whs-go.jpg Duo LED Wall Sconce, Top in 995-Natural Raw Copper, Bottom in 630-Beige, Bottom Interior in 995-Natural Raw Copper, Mounting in 630-Beige 1000 1000 84248
72785 65892 product 0 85018 A 0 D 0 0 Ellington-LED-gooseneck-16in-G22-630-Beige.jpg 16" Cassidy LED Globe Gooseneck Light, 630-Beige, G22 Gooseneck Arm, Decorative Backing Plate & Hex Cover 1000 1000 85018
72786 65892 product 0 85019 A 0 D 0 0 Ellington-LED-gooseneck-16in-G24-975-Galvanized.jpg 16" Cassidy LED Globe Gooseneck Light, 975-Galvanized, G24 Gooseneck Arm 1000 1000 85019
72793 65892 product 0 85026 A 0 D 0 0 Ellington-LED-gooseneck-16in-G12-206-matte-white.jpg 16" Cassidy LED Globe Gooseneck Light, 206-Matte White, G12 Gooseneck Arm 1000 1000 85026
72944 65895 product 0 85177 A 0 D 0 0 Oxford-pendant-studio-100-black-rust-cloth-cord-alt.jpg Oxford LED Studio Pendant Light, 100-Black, Rust Cloth Cord 1000 1000 85177
72953 65896 product 0 85186 A 0 D 0 0 Oxford-pendant-stem-100-black.jpg Oxford LED Stem Pendant Light, 100-Black 1000 1000 85186
72954 65896 product 0 85187 A 0 D 0 0 Oxford-pendant-stem-206-matte-white.jpg Oxford LED Stem Pendant Light, 206-Matte White 1000 1000 85187
72955 65896 product 0 85188 A 0 D 0 0 Oxford-pendant-stem-300-dark-green.jpg Oxford LED Stem Pendant Light, 300-Dark Green 1000 1000 85188
72956 65896 product 0 85189 A 0 D 0 0 Oxford-pendant-stem-390-teal.jpg Oxford LED Stem Pendant Light, 390-Teal 1000 1000 85189
72957 65896 product 0 85190 A 0 D 0 0 Oxford-pendant-stem-400-barn-red.jpg Oxford LED Stem Pendant Light, 400-Barn Red 1000 1000 85190
72958 65896 product 0 85191 A 0 D 0 0 Oxford-pendant-stem-320-fern-green.jpg Oxford LED Stem Pendant Light, 320-Fern Green 1000 1000 85191
72959 65896 product 0 85192 A 0 D 0 0 Oxford-pendant-stem-630-Beige.jpg Oxford LED Stem Pendant Light, 630-Beige 1000 1000 85192
72960 65896 product 0 85193 A 0 D 0 0 Oxford-pendant-stem-705-navy.jpg Oxford LED Stem Pendant Light, 705-Navy 1000 1000 85193
72961 65896 product 0 85194 A 0 D 0 0 Oxford-pendant-stem-975-galvanized.jpg Oxford LED Stem Pendant Light, 975-Galvanized 1000 1000 85194
72975 65896 product 0 85208 A 0 C 0 0 zs44LD0cwMg-commercial-office-conference-room-dining-room-table-oxford-stem-pendant-607-taupe-square.jpg Oxford LED Stem Pendant, 607-Taupe 1000 1000 85208
72976 65896 product 0 85209 A 0 C 0 0 587224690-residential-interior-dining-room-table-oxford-stem-pendant-300-dark-green-square.jpg Oxford LED Stem Pendant, 300-Dark Green 1000 1000 85209
72977 65896 product 0 85210 A 0 C 0 0 591311375-residential-kitchen-Oxford-stem-pendant-100-black-square.jpg Oxford LED Stem Pendant, 100-Black 1000 1000 85210
72978 65896 product 0 85211 A 0 C 0 0 GcodHo-commercial-lounge-residential-kitchen-oxford-500-buttery-yellow-stem-pendant-square.jpg Oxford LED Stem Pendant, 500-Buttery Yellow 1000 1000 85211
72029 65884 product 0 84262 A 1 D 0 0 Duo-Loma-sconce-LED-10in-320-fern-green-997-raw-brass_d8jg-ph.jpg Duo LED Wall Sconce, 320-Fern Green, Bottom Interior in 997-Natural Raw Brass, Mounting in 320-Fern Green 1000 1000 84262
72945 65895 product 0 85178 A 1 D 0 0 Oxford-pendant-studio-206-matte-white-blush-pink-cloth-cord-alt.jpg Oxford LED Studio Pendant Light, 206-Matte White, Blush Pink Cloth Cord 1000 1000 85178
72946 65895 product 0 85179 A 2 D 0 0 Oxford-pendant-studio-300-dark-green-SBK-standard-black-cord-alt.jpg Oxford LED Studio Pendant Light, 300-Dark Green, Standard Black Cord 1000 1000 85179
72019 65884 product 0 84252 A 3 D 0 0 Duo-Loma-sconce-LED-10in-975-galvanized.jpg Duo LED Sconce, 975-Galvanized, Ash Wood Ring 1000 1000 84252
72947 65895 product 0 85180 A 3 D 0 0 Oxford-pendant-studio-390-teal-SBK-standard-black-cord-alt.jpg Oxford LED Studio Pendant Light, 390-Teal, Standard Black Cord 1000 1000 85180
72014 65884 product 0 84247 A 4 D 0 0 Duo-Loma-sconce-LED-10in-997-raw-brass-300-dark-green.jpg Duo LED Sconce, Top in 997-Natural Raw Brass, Bottom in 300-Dark Green, Bottom Interior in 997-Natural Raw Brass, Mounting in 300-Dark Green 1000 1000 84247
72948 65895 product 0 85181 A 4 D 0 0 Oxford-pendant-studio-400-barn-red-swirl-cloth-cord-alt.jpg Oxford LED Studio Pendant Light, 400-Barn Red, Barn Red & Black Swirl Cloth Cord 1000 1000 85181
72018 65884 product 0 84251 A 5 D 0 0 Duo-Loma-sconce-LED-10in-815-light-grey-607-taupe-walnut-wood-ring.jpg Duo LED Sconce, Top in 815-Light Grey, Bottom in 607-Taupe, Walnut Wood Ring, Mounting in 607-Taupe 1000 1000 84251
72949 65895 product 0 85182 A 5 D 0 0 Oxford-taupe.jpg Oxford LED Studio Pendant Light, 607-Taupe, Confetti Cloth Cord 1000 1000 85182
72017 65884 product 0 84250 A 6 D 0 0 Duo-Loma-sconce-LED-10in-200-white-ash-wood-ring.jpg Duo LED Sconce, 200-White, Ash Wood Ring 1000 1000 84250
72951 65895 product 0 85184 A 6 D 0 0 Oxford-pendant-studio-705-navy-cloth-cord-alt.jpg Oxford LED Studio Pendant Light, 705-Navy, Navy Cloth Cord 1000 1000 85184
72950 65895 product 0 85183 A 7 D 0 0 Oxford-pendant-studio-630-Beige-creme-cloth-cord-alt.jpg Oxford LED Studio Pendant Light, 630-Beige, Creme Cloth Cord 1000 1000 85183
72952 65895 product 0 85185 A 8 D 0 0 Oxford-pendant-studio-975-galvanized-silver-cloth-cord-alt.jpg Oxford LED Studio Pendant Light, 975-Galvanized, Silver Cloth Cord 1000 1000 85185
72979 65895 product 0 85212 A 9 C 0 0 H6N4Go-commercial-interior-restaurant-studio-pendant-100-black-rust-cloth-cord-square.jpg Oxford LED Studio Pendant Light, 100-Black, Rust Cloth Cord 1000 1000 85212
72980 65895 product 0 85213 A 10 C 0 0 974171263-commercial-interior-lounge-hotel-office-Oxford-studio-pendant-206-matte-white-square.jpg Oxford LED Studio Pendant Light, 206-Matte White, Standard Black Cord 1000 1000 85213
72983 65895 product 0 85216 A 11 D 0 0 GcodHo-commercial-lounge-residential-kitchen-oxford-500-buttery-yellow-studio-pendant-rust-cloth-cord-square.jpg Oxford LED Studio Pendant Light, 500-Buttery Yellow, Rust Cloth Cord 1000 1000 85216
72981 65895 product 0 85214 A 12 C 0 0 adjustable-alt.jpg Adjustable Studio Mount 1000 1000 85214