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 (2775, 2776, 2774, 2773) 
ORDER BY 
  cscart_images_links.position, 
  cscart_images_links.pair_id

Query time 0.00144

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": 16,
          "filtered": 100,
          "index_condition": "cscart_images_links.object_type = 'product' and cscart_images_links.`type` = 'A' and cscart_images_links.object_id in (2775,2776,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 kids_477_cat_cocukodasihalilari_1_2ba50c02-04cc-460d-9814-252f3700a4ea-fotor-2024082117538.jpg 1072 737 N kids_477_cat_cocukodasihalilari_1_2ba50c02-04cc-460d-9814-252f3700a4ea-fotor-2024082117538.jpg 11668 2775 product 9875 A 1 9875
0 DSC_0563.jpg 1950 1462 N DSC_0563.jpg 11689 2776 product 9896 A 1 9896
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_9283.jpg 1950 1462 N DSC_9283.jpg 11669 2775 product 9876 A 2 9876
0 DSC_0497.jpg 1950 1463 N DSC_0497.jpg 11690 2776 product 9897 A 2 9897
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_9297.jpg 1950 1462 N DSC_9297.jpg 11670 2775 product 9877 A 3 9877
0 DSC_9369_mrf3-i4.jpg 1950 1463 N DSC_9369_mrf3-i4.jpg 11691 2776 product 9898 A 3 9898
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_9326.jpg 1950 1463 N DSC_9326.jpg 11671 2775 product 9878 A 4 9878
0 DSC_3259-fotor-20240821165515_lpe3-5i.jpg 1950 1462 N DSC_3259-fotor-20240821165515_lpe3-5i.jpg 11692 2776 product 9899 A 4 9899
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_9369.jpg 1950 1463 N DSC_9369.jpg 11672 2775 product 9879 A 5 9879
0 DSC_3257-fotor-2024082116547_s8v4-re.jpg 1950 1462 N DSC_3257-fotor-2024082116547_s8v4-re.jpg 11693 2776 product 9900 A 5 9900
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_3259-fotor-20240821165515.jpg 1950 1462 N DSC_3259-fotor-20240821165515.jpg 11673 2775 product 9880 A 6 9880
0 DSC_3273-fotor-2024082116570_eokf-d1.jpg 1950 1462 N DSC_3273-fotor-2024082116570_eokf-d1.jpg 11694 2776 product 9901 A 6 9901
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 DSC_3257-fotor-2024082116547.jpg 1950 1462 N DSC_3257-fotor-2024082116547.jpg 11674 2775 product 9881 A 7 9881
0 DSC_3293-fotor-2024082117230_iope-vq.jpg 1950 1463 N DSC_3293-fotor-2024082117230_iope-vq.jpg 11695 2776 product 9902 A 7 9902
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_3273-fotor-2024082116570.jpg 1950 1462 N DSC_3273-fotor-2024082116570.jpg 11675 2775 product 9882 A 8 9882
0 DSC_3299-fotor-2024082117520_436o-bm.jpg 1950 1463 N DSC_3299-fotor-2024082117520_436o-bm.jpg 11696 2776 product 9903 A 8 9903
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_3293-fotor-2024082117230.jpg 1950 1463 N DSC_3293-fotor-2024082117230.jpg 11676 2775 product 9883 A 9 9883
0 kids_477_cat_cocukodasihalilari_1_2ba50c02-04cc-460d-9814-252f3700a4ea-fotor-2024082117538_fdpk-nv.jpg 1072 737 N kids_477_cat_cocukodasihalilari_1_2ba50c02-04cc-460d-9814-252f3700a4ea-fotor-2024082117538_fdpk-nv.jpg 11688 2776 product 9895 A 9 9895
0 DSC_3299-fotor-2024082117520.jpg 1950 1463 N DSC_3299-fotor-2024082117520.jpg 11677 2775 product 9884 A 10 9884