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 (
    65115, 65009, 64782, 65118, 65008, 65117, 
    65465, 65475
  ) 
ORDER BY 
  cscart_images_links.position, 
  cscart_images_links.pair_id

Query time 0.00137

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 (65115,65009,64782,65118,65008,65117,65465,65475)"
        }
      }
    },
    "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
39622 64782 product 0 51855 A 0 D 0 0 chicago-chain-14in-500-buttery-yellow-CGG-RIB-CSW.jpg 14" Chicago, 500-Buttery Yellow, CGG-Standard Cast Guard, RIB-Ribbed Glass, CSW-White Cloth Cord 1000 1000 51855
50916 65008 product 0 63149 A 0 D 0 0 chicago-cord-16in-400-barn-red-WGG-RIB-CRZ.jpg 16" Chicago LED, 400-Barn Red, WGG-Wire Guard, RIB-Ribbed Glass, CRZ-Red Chevron Cord 1000 1000 63149
50920 65009 product 0 63153 A 0 D 0 0 chicago-chain-14in-500-buttery-yellow-CGG-RIB-CSW.jpg 14" Chicago LED, 500-Buttery Yellow, CGG-Standard Cast Guard, RIB-Ribbed Glass, CSW-White Cloth Cord 1000 1000 63153
55283 65115 product 0 67516 A 0 D 0 0 Outfield-Gooseneck-16inch-G22-Navy-White-Wire-Cast-Guard-Clear-Glass.jpg 16" Gridiron, 705-Navy, Heat Sink in 200-White, G22 Gooseneck Arm in 705-Navy, WGG-Wire Guard in 705-Navy, CLR-Clear Glass 1000 1000 67516
55284 65115 product 0 67517 A 0 D 0 0 Outfield-Gooseneck-16inch-G26-Barn-Red-Standard-Cast-Guard-Honey-Crackle-Glass.jpg 16" Gridiron, 400-Barn Red, Heat Sink in 975-Galvanized, G26 Gooseneck Arm in 975-Galvanized, CGG-Standard Cast Guard in 975-Galvanized, HCR-Honey Crackle Glass 1000 1000 67517
55285 65115 product 0 67518 A 0 D 0 0 Outfield-Gooseneck-16inch-G22-Black-Ribbed-Glass_copy.jpg 16" Gridiron, 100-Black, Heat Sink in 100-Black, G22 Gooseneck Arm in 100-Black, RIB-Ribbed Glass 1000 1000 67518
55286 65115 product 0 67519 A 0 D 0 0 Gridiron-Gooseneck-20inch-G26-Delphite-Wire-Cast-Guard.jpg 20" Gridiron, 765-Porcelain Delphite, Heat Sink in 975-Galvanized, G26 Gooseneck Arm in 975-Galvanized, WGG-Wire Guard in 975-Galvanized, FST-Frosted Glass 1000 1000 67519
55287 65115 product 0 67520 A 0 D 0 0 Outfield-Gooseneck-20inch-G15-White-Barn-Red-Wire-Cast-Guard.jpg 20" Gridiron, 200-White, Heat Sink in 400-Barn Red, G15 Gooseneck Arm in 400-Barn Red, WGG-Wire Guard in 400-Barn Red, FST-Frosted Glass 1000 1000 67520
55309 65117 product 0 67542 A 0 D 0 0 Gridiron-Chain-Hung-20inch-Jadite-Black-Wire-Cast-Guard-Black-White-Cloth-Cord.jpg 20" Gridiron, 355-Porcelain Jadite, Heat Sink in 355-Jadite, Mounting in 355-Jadite, Chain in 355-Jadite, CSBW-Black & White Cloth Cord, WGG-Wire Guard in 100-Black, FST-Frosted Glass 1000 1000 67542
55325 65118 product 0 67558 A 0 D 0 0 Outfield-Cord-Hung-20inch-Barn-Red-Wire-Cast-Guard-Red-White-Cloth-Cord-alt_we17-he.jpg 20" Gridiron, 200-White, Heat Sink in 400-Barn Red, CSR-Red Cloth Cord, WGG-Wire Guard, FST-Frosted Glass 1000 1000 67558
66953 65465 product 0 79186 A 0 D 0 0 chicago-flush-mount-12in-975-galvanized-CGG-FST.jpg 12" Chicago, 975-Galvanized, CGG-Standard Cast Guard, FST-Frosted Glass 1000 1000 79186
66961 65475 product 0 79194 A 0 D 0 0 chicago-flush-mount-12in-975-galvanized-CGG-FST_mg9i-cd.jpg 12" Chicago LED, 975-Galvanized, CGG-Standard Cast Guard, FST-Frosted Glass 1000 1000 79194
50923 65009 product 0 63156 A 1 D 0 0 chicago-chain-12in-975-galvanized-400-barn-red-WGG-RIB-CRD.jpg 12" Chicago LED, 975-Galvanized, WGG-Wire Guard, 400-Barn Red, RIB-Ribbed Glass, CSR-Red Cloth Cord, Mounting in 400-Barn Red 1000 1000 63156
55327 65118 product 0 67560 A 1 D 0 0 Gridiron-Cord-Hung-20inch-White-Black-Wire-Cast-Guard-Black-Cord-alt.jpg 20" Gridiron, 250-Porcelain White Black, Heat Sink in 250-White, CSBW-Black & White Cloth Cord, WGG-Wire Guard in 100-Black, CLR-Clear Glass 1000 1000 67560
66709 64782 product 0 78942 A 1 D 0 0 chicago-chain-full-build-20in-390-teal-975-galvanized-CGG-FST-CSBG.jpg 20" Chicago, 390-Teal, CGG-Standard Cast Guard, 975-Galvanized, FST-Frosted Glass, CSBG-Black & Gold Cloth Cord, Mounting in 975-Galvanized 1000 1000 78942
66741 65008 product 0 78974 A 1 D 0 0 chicago-cord-full-size-12in-975-galvanized-CGG-FST-CSUW_9pld-2i.jpg 12" Chicago LED, 975-Galvanized, CGG-Standard Cast Guard, FST-Frosted Glass, CSUW-Blue & White Cloth Cord 1000 1000 78974
66955 65465 product 0 79188 A 1 D 0 0 chicago-flush-mount-16in-400-barn-red-CGG-FST.jpg 16" Chicago, 400-Barn Red, CGG-Standard Cast Guard, FST-Frosted Glass 1000 1000 79188
66966 65475 product 0 79199 A 1 D 0 0 chicago-flush-mount-20in-390-teal-975-galvanized-CGG-FST_kmed-n1.jpg 20" Chicago LED, 390-Teal, Mounting in 975-Galvanized, CGG-Standard Cast Guard, 975-Galvanized, FST-Frosted Glass 1000 1000 79199
39624 64782 product 0 51857 A 2 D 0 0 chicago-chain-16in-400-barn-red-CGG-FST-CRZ.jpg 16" Chicago, 400-Barn Red, CGG-Standard Cast Guard, FST-Frosted Glass, CRZ-Red Chevron Cord 1000 1000 51857
55308 65117 product 0 67541 A 2 D 0 0 Outfield-Chain-Hung-20inch-White-Barn-Red-Wire-Cast-Guard-Red-White-Cloth-Cord.jpg 20" Gridiron, 200-White, Heat Sink in 400-Barn Red, Chain in 400-Barn Red, CRZ-Red Chevron Cord, WGG-Wire Guard in 400-Barn Red, FST-Frosted Glass 1000 1000 67541
55326 65118 product 0 67559 A 2 D 0 0 Outfield-Cord-Hung-16inch-Black-Wire-Cast-Guard-Clear-Glass-Black-White-Cloth-Cord-alt.jpg 16" Gridiron, 100-Black, Heat Sink in 100-Black, CSBP-Black & Pink Cloth Cord, WGG-Wire Guard in 100-Black, CLR-Clear Glass 1000 1000 67559
66711 65009 product 0 78944 A 2 D 0 0 chicago-chain-20in-100-black-TGG-FST-SBK_ze5z-6c.jpg 20" Chicago LED, 100-Black, TGG-Heavy Duty Cast Guard, FST-Frosted Glass, SBK-Standard Black Cord 1000 1000 78944
66959 65465 product 0 79192 A 2 D 0 0 chicago-flush-mount-20in-390-teal-975-galvanized-CGG-FST.jpg 20" Chicago, 390-Teal, Mounting in 975-Galvanized, CGG-Standard Cast Guard, 975-Galvanized, FST-Frosted Glass 1000 1000 79192
66962 65475 product 0 79195 A 2 D 0 0 chicago-flush-mount-16in-400-barn-red-CGG-FST_43q0-a0.jpg 16" Chicago LED, 400-Barn Red, CGG-Standard Cast Guard, FST-Frosted Glass 1000 1000 79195
50921 65009 product 0 63154 A 3 D 0 0 chicago-chain-full-build-20in-390-teal-975-galvanized-CGG-FST-CSBG.jpg 20" Chicago LED, 390-Teal, CGG-Standard Cast Guard, 975-Galvanized, FST-Frosted Glass, CSBG-Black & Gold Cloth Cord, Mounting in 975-Galvanized 1000 1000 63154
55311 65117 product 0 67544 A 3 D 0 0 Gridiron-Chain-Hung-20inch-Delphite-Galvanized-Wire-Cast-Guard-White-Cord.jpg 20" Gridiron, 765-Porcelain Delphite, Heat Sink in 975-Galvanized, Chain in 975-Galvanized, SWH-Standard White Cord, WGG-Wire Guard in 975-Galvanized, FST-Frosted Glass 1000 1000 67544
55328 65118 product 0 67561 A 3 D 0 0 Gridiron-Cord-Hung-20inch-Delphite-Wire-Galvanized-Wire-Cast-Guard-White-Cord-alt.jpg 20" Gridiron, 765-Porcelain Delphite, Heat Sink in 975-Galvanized, SBK-Standard Black Cord, WGG-Wire Guard in 975-Galvanized, CLR-Clear Glass 1000 1000 67561
66708 64782 product 0 78941 A 3 D 0 0 chicago-chain-20in-100-black-TGG-FST-SBK.jpg 20" Chicago, 100-Black, TGG-Heavy Duty Cast Guard, FST-Frosted Glass, SBK-Standard Black Cord 1000 1000 78941
66742 65008 product 0 78975 A 3 D 0 0 chicago-cord-14in-500-buttery-yellow-CGG-RIB-CSBG.jpg 14" Chicago LED, 500-Buttery Yellow, CGG-Standard Cast Guard, RIB-Ribbed Glass, CSBG-Black & Gold Cloth Cord 1000 1000 78975
66954 65465 product 0 79187 A 3 D 0 0 chicago-flush-mount-14in-500-buttery-yellow-200-white-CGG-RIB.jpg 14" Chicago, 500-Buttery Yellow, Mounting in 200-White, CGG-Standard Cast Guard, RIB-Ribbed Glass 1000 1000 79187
66965 65475 product 0 79198 A 3 D 0 0 chicago-flush-mount-20in-100-black-TGG-RIB_fbuo-ij.jpg 20" Chicago LED, 100-Black, TGG-Heavy Duty Cast Guard, RIB-Ribbed Glass 1000 1000 79198
55312 65117 product 0 67545 A 4 D 0 0 Outifield-Chain-Hung-16inch-Navy-White-Wire-Cast-Guard-Blue-White-Cloth-Cord.jpg 16" Gridiron, 705-Navy, Heat Sink in 200-White, Chain in 200-White, CSUW-Blue & White Cloth Cord, WGG-Wire Guard in 705-Navy, CLR-Clear Glass 1000 1000 67545
55329 65118 product 0 67562 A 4 D 0 0 Outfield-Cord-Hung-16inch-Navy-White-Clear-Glass-Blue-White-Cloth-Cord-alt.jpg 16" Gridiron, 705-Navy, Heat Sink in 200-White, CSGW-Gold & White Cloth Cord, WGG-Wire Guard in 705-Navy, CLR-Clear Glass 1000 1000 67562
66707 64782 product 0 78940 A 4 D 0 0 chicago-chain-18in-355-Jadite-975-galvanized-CGG-RIB-CSB.jpg 18" Chicago, 355-Porcelain Jadite, CGG-Standard Cast Guard, 975-Galvanized, RIB-Ribbed Glass, CSB-Black Cloth Cord 1000 1000 78940
66710 65009 product 0 78943 A 4 D 0 0 chicago-chain-16in-400-barn-red-CGG-FST-CRZ.jpg 16" Chicago LED, 400-Barn Red, CGG-Standard Cast Guard, FST-Frosted Glass, CRZ-Red Chevron Cord 1000 1000 78943
66745 65008 product 0 78978 A 4 D 0 0 chicago-cord-20in-100-black-CGG-FST-CSB_j3y5-42.jpg 20" Chicago LED, 100-Black, CGG-Standard Cast Guard, FST-Frosted Glass, CSB-Black Cloth Cord 1000 1000 78978
66958 65465 product 0 79191 A 4 D 0 0 chicago-flush-mount-20in-100-black-TGG-RIB.jpg 20" Chicago, 100-Black, TGG-Heavy Duty Cast Guard, RIB-Ribbed Glass 1000 1000 79191
66963 65475 product 0 79196 A 4 D 0 0 chicago-flush-mount-16in-700-royal-blue-200-white-CGG-RIB_m00v-29.jpg 16" Chicago LED, 700-Royal Blue, Mounting in 200-White, CGG-Standard Cast Guard, 200-White, RIB-Ribbed Glass 1000 1000 79196
39623 64782 product 0 51856 A 5 D 0 0 chicago-chain-16in-700-royal-CGG-RIB-CSUW.jpg 16" Chicago, 700-Royal Blue, CGG-Standard Cast Guard, RIB-Ribbed Glass, CSUW-Blue & White Cloth Cord 1000 1000 51856
66712 65009 product 0 78945 A 5 D 0 0 chicago-chain-18in-355-Jadite-975-galvanized-CGG-RIB-CSB_1l4t-65.jpg 18" Chicago LED, 355-Jadite, CGG-Standard Cast Guard, 975-Galvanized, RIB-Ribbed Glass, CSB-Black Cloth Cord 1000 1000 78945
66956 65465 product 0 79189 A 5 D 0 0 chicago-flush-mount-16in-700-royal-blue-200-white-CGG-RIB.jpg 16" Chicago, 700-Royal Blue, Mounting in 200-White, CGG-Standard Cast Guard, 200-White, RIB-Ribbed Glass 1000 1000 79189
66964 65475 product 0 79197 A 5 D 0 0 chicago-flush-mount-18in-350-vintage-green-100-black-WGG-RIB_sg3k-f9.jpg 18" Chicago LED, 350-Porcelain Vintage Green, WGG-Wire Guard, 150-Black, RIB-Ribbed Glass 1000 1000 79197
66706 64782 product 0 78939 A 6 D 0 0 chicago-chain-18in-350-vintage-100-black-CGG-RIB-CSBG.jpg 18" Chicago, 350-Porcelain Vintage Green, CGG-Standard Cast Guard, 150-Black, RIB-Ribbed Glass, CSBG-Black & Gold Cloth Cord, Mounting in 150-Black 1000 1000 78939
66713 65009 product 0 78946 A 6 D 0 0 chicago-chain-16in-700-royal-CGG-RIB-CSUW.jpg 16" Chicago LED, 700-Royal Blue, CGG-Standard Cast Guard, RIB-Ribbed Glass, CSUW-Blue & White Cloth Cord 1000 1000 78946
66744 65008 product 0 78977 A 6 D 0 0 chicago-cord-20in-390-teal-975-galvanized-CGG-RIB-CSGW_ux5z-zm.jpg 20" Chicago LED, 390-Teal, CGG-Standard Cast Guard, 975-Galvanized, RIB-Ribbed Glass, CSGW-Gold & White Cloth Cord 1000 1000 78977
66957 65465 product 0 79190 A 6 D 0 0 chicago-flush-mount-18in-350-vintage-green-100-black-WGG-RIB.jpg 18" Chicago, 350-Porcelain Vintage Green, WGG-Wire Guard, 150-Black, RIB-Ribbed Glass 1000 1000 79190
65618 65009 product 0 77851 A 7 C 0 0 IMG_3320-residential-interior-lighting-dining-room-Chicago-LED-Vintage-industrial-Chain-Hung-Pendant-20in-650-Bronze-SBK-Clear-Glass.jpg 20" Chicago LED, 650-Bronze, SBK-Standard Black Cord, Clear Glass | Customer Submission 2509 3515 77851
65619 65009 product 0 77852 A 8 C 0 0 IMG_3317-residential-interior-lighting-dining-room-Chicago-LED-Vintage-industrial-Chain-Hung-Pendant-20in-650-Bronze-SBK-Clear-Glass.jpg 20" Chicago LED, 650-Bronze, SBK-Standard Black Cord, Clear Glass | Customer Submission 2537 2915 77852