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 = 'ru' 
WHERE 
  cscart_images_links.object_type = 'product' 
  AND cscart_images_links.type = 'A' 
  AND cscart_images_links.object_id IN (2771, 2774, 2773) 
ORDER BY 
  cscart_images_links.position, 
  cscart_images_links.pair_id

Query time 0.00063

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": 11,
          "filtered": 100,
          "index_condition": "cscart_images_links.object_type = 'product' and cscart_images_links.`type` = 'A' and cscart_images_links.object_id in (2771,2774,2773)"
        }
      }
    },
    "table": {
      "table_name": "cscart_images",
      "access_type": "eq_ref",
      "possible_keys": ["PRIMARY"],
      "key": "PRIMARY",
      "key_length": "4",
      "used_key_parts": ["image_id"],
      "ref": ["noframes_kz_new.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": ["noframes_kz_new.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 = 'ru' and trigcond(cscart_images.image_id is not null))"
    }
  }
}

Result

image_id image_path image_x image_y is_high_res rf_original pair_id object_id object_type detailed_id type position alt images_image_id
0 DSC_0090-fotor-20240821162155.jpg 1463 1097 N DSC_0090-fotor-20240821162155.jpg 11635 2773 product 9842 A 1 9842
0 DSC_9663.jpg 1950 1462 N DSC_9663.jpg 11651 2774 product 9858 A 1 9858
0 DSC_0318.jpg 1950 1463 N DSC_0318.jpg 11636 2773 product 9843 A 2 9843
0 DSC_9697-восстановлено.jpg 1950 1463 N DSC_9697-восстановлено.jpg 11652 2774 product 9859 A 2 9859
0 DSC_0114.jpg 1950 1463 N DSC_0114.jpg 11637 2773 product 9844 A 3 9844
0 DSC_9793.jpg 1950 1462 N DSC_9793.jpg 11653 2774 product 9860 A 3 9860
0 DSC_3002-fotor-20240821155036.jpg 1950 1462 N DSC_3002-fotor-20240821155036.jpg 11638 2773 product 9845 A 4 9845
0 DSC_9777-восстановлено.jpg 1950 1463 N DSC_9777-восстановлено.jpg 11654 2774 product 9861 A 4 9861
0 DSC_2978-fotor-20240821155531.jpg 1950 1463 N DSC_2978-fotor-20240821155531.jpg 11639 2773 product 9846 A 5 9846
0 DSC_3217-fotor-20240821173246.jpg 1950 1462 N DSC_3217-fotor-20240821173246.jpg 11655 2774 product 9862 A 5 9862
0 DSC_3036-fotor-20240821155610.jpg 1950 1463 N DSC_3036-fotor-20240821155610.jpg 11640 2773 product 9847 A 6 9847
0 DSC_3215-fotor-20240821172754.jpg 1950 1463 N DSC_3215-fotor-20240821172754.jpg 11656 2774 product 9863 A 6 9863
0 DSC_2971-fotor-20240821155438.jpg 1727 1296 N DSC_2971-fotor-20240821155438.jpg 11641 2773 product 9848 A 7 9848
0 DSC_3241-fotor-20240821172657.jpg 1950 1462 N DSC_3241-fotor-20240821172657.jpg 11657 2774 product 9864 A 7 9864
0 kids_476_bear_cocukodasihalilari_1_d5ca44ec-ca50-4ec8-ae31-86e3e9fc7cd3-fotor-20240923181746_xh8d-ft.jpg 1067 736 N kids_476_bear_cocukodasihalilari_1_d5ca44ec-ca50-4ec8-ae31-86e3e9fc7cd3-fotor-20240923181746_xh8d-ft.jpg 11634 2773 product 9841 A 8 9841
0 DSC_3201-fotor-20240821172550.jpg 1950 1463 N DSC_3201-fotor-20240821172550.jpg 11658 2774 product 9865 A 8 9865
0 DSC_1733.jpg 1950 1463 N DSC_1733.jpg 11619 2771 product 9826 A 9 9826
0 kids_478_lion_cocukodasihalilari_1_bd4836a2-95da-4dc9-a121-b731d63bf745-fotor-2024082117342.jpg 1065 739 N kids_478_lion_cocukodasihalilari_1_bd4836a2-95da-4dc9-a121-b731d63bf745-fotor-2024082117342.jpg 11650 2774 product 9857 A 9 9857
0 DSC_1735.jpg 1950 1463 N DSC_1735.jpg 11620 2771 product 9827 A 10 9827
0 DSC_1737.jpg 1950 1295 N DSC_1737.jpg 11621 2771 product 9828 A 11 9828
0 DSC_1752.jpg 1950 1463 N DSC_1752.jpg 11622 2771 product 9829 A 12 9829
0 DSC_2669-fotor-20240814221142.jpg 1950 1462 N DSC_2669-fotor-20240814221142.jpg 11623 2771 product 9830 A 13 9830
0 DSC_2679-fotor-2024081422825.jpg 1950 1463 N DSC_2679-fotor-2024081422825.jpg 11624 2771 product 9831 A 14 9831
0 DSC_2706-fotor-2024081422952.jpg 1950 1463 N DSC_2706-fotor-2024081422952.jpg 11625 2771 product 9832 A 15 9832