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 (
    298, 428, 430, 427, 55, 506, 5474, 504, 
    1855, 1853, 1854, 5473, 1843, 1841, 
    1840, 486, 1842, 194, 518, 519
  ) 
ORDER BY 
  cscart_images_links.position, 
  cscart_images_links.pair_id

Query time 0.00142

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": 23,
          "filtered": 100,
          "index_condition": "cscart_images_links.object_type = 'product' and cscart_images_links.`type` = 'M' and cscart_images_links.object_id in (298,428,430,427,55,506,5474,504,1855,1853,1854,5473,1843,1841,1840,486,1842,194,518,519)"
        }
      }
    },
    "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 AftershaveHero2-1880-80.jpg 1880 1548 {"x":0,"y":0,"height":1548,"width":1880} Y Y N 1746530768 356 298 product 571 M 0 Aftershaves 571
0 AftershaveHero2-1880-80.jpg 1880 1548 {"x":0,"y":0,"height":1548,"width":1880} Y Y N 1746530768 2376 427 product 571 M 0 Aftershaves 571
0 AftershaveHero2-1880-80.jpg 1880 1548 {"x":0,"y":0,"height":1548,"width":1880} Y Y N 1746530768 2377 428 product 571 M 0 Aftershaves 571
0 AftershaveHero2-1880-80.jpg 1880 1548 {"x":0,"y":0,"height":1548,"width":1880} Y Y N 1746530768 2379 430 product 571 M 0 Aftershaves 571
0 VAR-FrLav-1880-80_j5ih-54.jpg 1880 1440 N N N 0 6813 486 product 3049 M 0 French Lavender 3049
0 VAR-EucMint-1880-80_m12m-5p.jpg 1880 1440 N N N 0 6814 1840 product 3047 M 0 Eucalyptus Mint 3047
0 VAR-CitOat-1880-80_ib7d-9u.jpg 1880 1440 N N N 0 6815 1841 product 3048 M 0 Citrus Oatmeal 3048
0 VAR-LavOat-1880-80_szbz-1k.jpg 1880 1440 N N N 0 6816 1842 product 3045 M 0 Lavender Oatmeal 3045
0 VAR-BioSkit-1880-80_qayz-d7.jpg 1880 1440 N N N 0 6817 1843 product 3046 M 0 Biotherapy Skincare 3046
0 CedarCypresshero1880_4naw-84.jpg 1880 1504 N N N 0 6845 504 product 3659 M 0 Cedar Cypress 3659
0 shirazhero1880-80.jpg 1880 1400 N N N 0 6846 1853 product 3663 M 0 3663
0 soapstonehero1880_ouuw-p8.jpg 1800 1440 N N N 0 6847 1854 product 3661 M 0 3661
0 oakmosshero1880.jpg 1880 1504 N N N 0 6848 1855 product 3662 M 0 Oakmoss 3662
0 BigBarsHero1880-80__1_.jpg 1200 919 N N N 1746804267 11060 5473 product 4045 M 0 4045
0 BETABarstiled1880_olda-3c.png 1200 975 N N N 1746822490 11088 5474 product 4060 M 0 4060
0 2020-7-17BayRum-1880-80.jpg 1880 1440 N N N 0 1857 55 product 2094 M 2 2094
0 2020-7-17BayRum-1880-80.jpg 1880 1440 N N N 0 3497 506 product 2094 M 2 2094
0 Burano-All-Natural-Laundry-Soap.jpg 1880 1440 N N N 0 3146 194 product 3321 M 3 Burano All Natural Laundry Soap 3321
0 Burano-All-Natural-Laundry-Soap.jpg 1880 1440 N N N 0 3527 518 product 3321 M 3 Burano All Natural Laundry Soap 3321
0 Burano-All-Natural-Laundry-Soap.jpg 1880 1440 N N N 0 3528 519 product 3321 M 3 Burano All Natural Laundry Soap 3321