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, 232, 520, 521, 522, 
    523, 337, 1562, 1563, 1564, 5473, 1843, 
    1841, 1840, 486, 1842, 405, 1771, 1757, 
    1760, 1765, 1768, 3478, 3479, 3480, 
    5475, 533, 531, 536, 534, 532, 292, 535, 
    309, 550, 554, 555, 556, 3314, 339, 1565, 
    1566, 1567, 1568, 1569, 1570, 5556
  ) 
ORDER BY 
  cscart_images_links.position, 
  cscart_images_links.pair_id

Query time 0.00243

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": 64,
          "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,232,520,521,522,523,337,1562,1563,1564,5473,1843,1841,1840,486,1842,405,1771,1757,1760,1765,1768,3478,3479,3480,5475,533,531,536,534,532,292,535,309,550,554,555,556,3314,339,1565,1566,1567,1568,1569,1570,5556)"
        }
      }
    },
    "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 beardoil2.jpg 1410 1080 N N N 0 668 337 product 905 M 0 Herbaria all natural Beard Oil 905
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 WebDianaBIBinhand.JPG 1800 1440 N N N 0 3419 339 product 3590 M 0 Biotherapy Black Luffa Soap 3590
0 RoseGarden1880-80.jpg 1880 1440 N N N 0 3546 292 product 2950 M 0 2950
0 LavenderFields1880-80.jpg 1880 1440 N N N 0 3547 531 product 2946 M 0 2946
0 PinkGrapefruitEucalyptus1880-80.jpg 1880 1440 N N N 0 3548 532 product 2948 M 0 2948
0 BathBomb1880-80.jpg 1880 1440 N N N 0 3549 533 product 2945 M 0 2945
0 PeppermintRosemary1880-80.jpg 1880 1440 N N N 0 3550 534 product 2949 M 0 2949
0 TangerinePomander1880-80.jpg 1880 1440 N N N 0 3551 535 product 2951 M 0 2951
0 LemonGrove1880-80.jpg 1880 1440 N N N 0 3552 536 product 2947 M 0 2947
0 beardoil2.jpg 1410 1080 N N N 0 4590 1562 product 905 M 0 Herbaria all natural Beard Oil 905
0 beardoil2.jpg 1410 1080 N N N 0 4591 1563 product 905 M 0 Herbaria all natural Beard Oil 905
0 beardoil2.jpg 1410 1080 N N N 0 4592 1564 product 905 M 0 Herbaria all natural Beard Oil 905
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 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 BigBarsHero1880-80__1_.jpg 1200 919 N N N 1746804267 11060 5473 product 4045 M 0 4045
0 Caracalla2021-11-22.jpg 1200 919 N N N 1746805647 11079 5475 product 4057 M 0 4057
0 WebLuffaGroupSide2_zko9-ey.jpg 1800 1440 N N N 0 11211 5556 product 3891 M 1 3891
0 AlmondSpiceLitOpened-475-80_em6w-x4.jpg 475 324 N N N 0 9099 1768 product 3697 M 2 3697
0 Ambiente-Room-Linen-Spray.jpg 1880 1440 N N N 0 3197 232 product 3372 M 3 3372
0 Ambiente-Room-Linen-Spray.jpg 1880 1440 N N N 0 3529 520 product 3372 M 3 3372
0 Ambiente-Room-Linen-Spray.jpg 1880 1440 N N N 0 3530 521 product 3372 M 3 3372
0 Ambiente-Room-Linen-Spray.jpg 1880 1440 N N N 0 3531 522 product 3372 M 3 3372
0 Ambiente-Room-Linen-Spray.jpg 1880 1440 N N N 0 3532 523 product 3372 M 3 3372
0 AlmondSpiceLit-1880-80_m68c-8m.jpg 1880 1440 N N N 0 9407 1765 product 3715 M 3 3715
0 AlmondSpiceLit-1880-80_ojc6-c2.jpg 1880 1440 N N N 0 9408 3479 product 3716 M 3 3716
0 AlmondSpiceLit-1880-80_b6b7-3g.jpg 1880 1440 N N N 0 9409 1771 product 3717 M 3 3717
0 AlmondSpiceLit-1880-80_viam-cw.jpg 1880 1440 N N N 0 9419 1760 product 3727 M 3 3727
0 AlmondSpiceLit-1880-80_4s1u-v6.jpg 1880 1440 N N N 0 9422 1757 product 3730 M 3 3730
0 AlmondSpiceLit-1880-80_op7s-p9.jpg 1880 1440 N N N 0 9424 3480 product 3732 M 3 3732
0 DeoGroupshot2024_1880.jpg 1880 1400 N N N 0 3496 309 product 3667 M 4 3667
0 DeoGroupshot2024_1880.jpg 1880 1400 N N N 0 3566 550 product 3667 M 4 3667
0 DeoGroupshot2024_1880.jpg 1880 1400 N N N 0 3570 554 product 3667 M 4 3667
0 DeoGroupshot2024_1880.jpg 1880 1400 N N N 0 3571 555 product 3667 M 4 3667
0 DeoGroupshot2024_1880.jpg 1880 1400 N N N 0 3572 556 product 3667 M 4 3667
0 DeoGroupshot2024_1880.jpg 1880 1400 N N N 0 8486 3314 product 3667 M 4 3667
0 AlmondSpiceLit-1880-80.jpg 1880 1440 N N N 0 9405 3478 product 3713 M 4 3713
0 AlmondSpiceLit-1880-80_q8yl-wp.jpg 1880 1440 N N N 0 9406 405 product 3714 M 4 3714