SELECT 
  cscart_images.*, 
  cscart_images_links.*, 
  cscart_common_descriptions.description AS alt, 
  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 = 'M' 
  AND cscart_images_links.object_id IN (
    1581, 1582, 1583, 1584, 1585, 349, 1586, 
    1587, 339, 1565, 1566, 1567, 1568, 1569, 
    1570, 5556, 376, 1612, 1613, 1614, 1615, 
    1616, 1617, 1618, 5476
  ) 
ORDER BY 
  cscart_images_links.position, 
  cscart_images_links.pair_id

Query time 0.00162

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": 27,
          "filtered": 100,
          "index_condition": "cscart_images_links.object_type = 'product' and cscart_images_links.`type` = 'M' and cscart_images_links.object_id in (1581,1582,1583,1584,1585,349,1586,1587,339,1565,1566,1567,1568,1569,1570,5556,376,1612,1613,1614,1615,1616,1617,1618,5476)"
        }
      }
    },
    "table": {
      "table_name": "cscart_images",
      "access_type": "eq_ref",
      "possible_keys": ["PRIMARY"],
      "key": "PRIMARY",
      "key_length": "4",
      "used_key_parts": ["image_id"],
      "ref": ["herbaria_cscart_4_18.cscart_images_links.detailed_id"],
      "rows": 1,
      "filtered": 100
    },
    "table": {
      "table_name": "cscart_common_descriptions",
      "access_type": "eq_ref",
      "possible_keys": ["PRIMARY"],
      "key": "PRIMARY",
      "key_length": "108",
      "used_key_parts": ["object_id", "lang_code", "object_holder"],
      "ref": ["herbaria_cscart_4_18.cscart_images.image_id", "const", "const"],
      "rows": 1,
      "filtered": 100,
      "attached_condition": "trigcond(cscart_common_descriptions.object_holder = 'images' and cscart_common_descriptions.lang_code = 'en' and trigcond(cscart_images.image_id is not null))"
    }
  }
}

Result

image_id image_path image_x image_y crop_info cp_ic_wb cp_ic_crop cp_ic_manually cp_ic_crop_time pair_id object_id object_type detailed_id type position cp_ig_settings alt images_image_id
0 WebDianaBIBinhand.JPG 1800 1440 N N N 0 3419 339 product 3590 M 0 Biotherapy Black Luffa Soap 3590
0 WebCMPinhand_h746-2l.jpg 1800 1440 N N N 0 4648 1565 product 3597 M 0 3597
0 WebCHAIinhand_65dm-ju.jpg 1800 1440 N N N 0 4649 1566 product 3598 M 0 3598
0 WebFLinhand_dsya-pe.jpg 1800 1440 N N N 0 4650 1567 product 3599 M 0 3599
0 WebMCinhand_s5d9-84.jpg 1800 1440 N N N 0 4651 1568 product 3600 M 0 3600
0 WebSpyLuffainhand_7rxj-co.jpg 1800 1440 N N N 0 4652 1569 product 3601 M 0 3601
0 Web3Xinhand_gnmo-7t.JPG 1800 1440 N N N 0 4653 1570 product 3602 M 0 3602
0 2020-7-13-ShampooC-F-1880-80_en32-5l.jpg 1880 1440 N N N 0 4705 376 product 2294 M 0 2294
0 2020-7-13-ShampooC-T-1880-80_mblt-eo.jpg 1880 1440 N N N 0 4706 1612 product 2295 M 0 2295
0 2020-7-13-ShampooL-F-1880-80_97r3-wg.jpg 1880 1440 N N N 0 4707 1613 product 2296 M 0 2296
0 2020-7-13-ShampooL-T-1880-80_1pfq-o7.jpg 1880 1440 N N N 0 4708 1614 product 2297 M 0 2297
0 2020-7-13-ShampooRM-F-1880-80_i70r-u5.jpg 1880 1440 N N N 0 4709 1615 product 2298 M 0 2298
0 2020-7-13-ShampooRM-T-1880-80.jpg 1880 1440 N N N 0 4710 1616 product 2942 M 0 2942
0 2020-7-13-ShampooTT-F-1880-80_d8sg-ay.jpg 1880 1440 N N N 0 4711 1617 product 2300 M 0 2300
0 2020-7-13-ShampooTT-T-1880-80_2x9n-ro.jpg 1880 1440 N N N 0 4712 1618 product 2301 M 0 2301
0 ShampooGroup.jpg 1200 893 N N N 1746824958 11089 5476 product 4061 M 1 4061
0 WebLuffaGroupSide2_zko9-ey.jpg 1800 1440 N N N 0 11211 5556 product 3891 M 1 3891
0 8LipBalms-1880-70_lmra-2k.jpg 1880 1440 N N N 0 3231 349 product 3404 M 4 3404
0 8LipBalms-1880-70_lmra-2k.jpg 1880 1440 N N N 0 4664 1581 product 3404 M 4 3404
0 8LipBalms-1880-70_lmra-2k.jpg 1880 1440 N N N 0 4665 1582 product 3404 M 4 3404
0 8LipBalms-1880-70_lmra-2k.jpg 1880 1440 N N N 0 4666 1583 product 3404 M 4 3404
0 8LipBalms-1880-70_lmra-2k.jpg 1880 1440 N N N 0 4667 1584 product 3404 M 4 3404
0 8LipBalms-1880-70_lmra-2k.jpg 1880 1440 N N N 0 4668 1585 product 3404 M 4 3404
0 8LipBalms-1880-70_lmra-2k.jpg 1880 1440 N N N 0 4669 1586 product 3404 M 4 3404
0 8LipBalms-1880-70_lmra-2k.jpg 1880 1440 N N N 0 4670 1587 product 3404 M 4 3404