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 = 'ar' 
WHERE 
  cscart_images_links.object_type = 'product' 
  AND cscart_images_links.type = 'M' 
  AND cscart_images_links.object_id IN (
    1406, 1265, 1408, 1411, 1407, 1266, 1439, 
    1442, 1447, 1445, 1446, 1263, 1454, 
    1456, 1458, 1453, 1428, 1261, 1426, 
    1430, 1429, 1256, 1397, 1395, 1396, 
    1323, 1319, 1318, 1262, 1317, 1273, 
    1421, 1423, 1420, 4526, 4528, 4530, 
    4532, 4527, 4775, 4767, 4771, 4773, 
    4770, 4744, 4746, 4748, 4750, 4745, 
    4788, 4789, 4790
  ) 
ORDER BY 
  cscart_images_links.position, 
  cscart_images_links.pair_id

Query time 0.00382

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "124.81"
    },
    "ordering_operation": {
      "using_filesort": true,
      "cost_info": {
        "sort_cost": "52.00"
      },
      "nested_loop": [
        {
          "table": {
            "table_name": "cscart_images_links",
            "access_type": "range",
            "possible_keys": [
              "object_id"
            ],
            "key": "object_id",
            "used_key_parts": [
              "object_id",
              "object_type",
              "type"
            ],
            "key_length": "81",
            "rows_examined_per_scan": 52,
            "rows_produced_per_join": 52,
            "filtered": "100.00",
            "index_condition": "((`softwarepirmam_hewadelivard_cscart_4`.`cscart_images_links`.`object_type` = 'product') and (`softwarepirmam_hewadelivard_cscart_4`.`cscart_images_links`.`type` = 'M') and (`softwarepirmam_hewadelivard_cscart_4`.`cscart_images_links`.`object_id` in (1406,1265,1408,1411,1407,1266,1439,1442,1447,1445,1446,1263,1454,1456,1458,1453,1428,1261,1426,1430,1429,1256,1397,1395,1396,1323,1319,1318,1262,1317,1273,1421,1423,1420,4526,4528,4530,4532,4527,4775,4767,4771,4773,4770,4744,4746,4748,4750,4745,4788,4789,4790)))",
            "cost_info": {
              "read_cost": "31.21",
              "eval_cost": "5.20",
              "prefix_cost": "36.41",
              "data_read_per_join": "4K"
            },
            "used_columns": [
              "pair_id",
              "object_id",
              "object_type",
              "image_id",
              "detailed_id",
              "type",
              "position"
            ]
          }
        },
        {
          "table": {
            "table_name": "cscart_images",
            "access_type": "eq_ref",
            "possible_keys": [
              "PRIMARY"
            ],
            "key": "PRIMARY",
            "used_key_parts": [
              "image_id"
            ],
            "key_length": "4",
            "ref": [
              "softwarepirmam_hewadelivard_cscart_4.cscart_images_links.detailed_id"
            ],
            "rows_examined_per_scan": 1,
            "rows_produced_per_join": 52,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "13.00",
              "eval_cost": "5.20",
              "prefix_cost": "54.61",
              "data_read_per_join": "40K"
            },
            "used_columns": [
              "image_id",
              "image_path",
              "image_x",
              "image_y",
              "is_high_res",
              "transparent",
              "cp_in_opt_list"
            ]
          }
        },
        {
          "table": {
            "table_name": "cscart_common_descriptions",
            "access_type": "eq_ref",
            "possible_keys": [
              "PRIMARY"
            ],
            "key": "PRIMARY",
            "used_key_parts": [
              "object_id",
              "lang_code",
              "object_holder"
            ],
            "key_length": "108",
            "ref": [
              "softwarepirmam_hewadelivard_cscart_4.cscart_images.image_id",
              "const",
              "const"
            ],
            "rows_examined_per_scan": 1,
            "rows_produced_per_join": 52,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "13.00",
              "eval_cost": "5.20",
              "prefix_cost": "72.81",
              "data_read_per_join": "30K"
            },
            "used_columns": [
              "object_id",
              "description",
              "lang_code",
              "object_holder"
            ]
          }
        }
      ]
    }
  }
}

Result

image_id image_path image_x image_y is_high_res transparent cp_in_opt_list pair_id object_id object_type detailed_id type position alt images_image_id
0 Black_czso-u6.jpg 600 600 N N Y 11128 1256 product 9992 M 0 9992
0 Goegeous_Ice_Blue.jpg 600 600 N N Y 11145 1261 product 10009 M 0 10009
0 Delivard_Product_Images_-_2025-04-09T161942.131.jpg 600 600 N N Y 11150 1262 product 10014 M 0 10014
0 Amber_Yellow_pjew-6x.jpg 600 600 N N Y 11153 1263 product 10017 M 0 10017
0 Black_Gray.jpg 600 600 N N Y 11163 1265 product 10027 M 0 10027
0 Black_Titanium.jpg 600 600 N N Y 11166 1266 product 10030 M 0 10030
0 Shiny_Silver_hmtp-eq.jpg 600 600 N N Y 11194 1273 product 10058 M 0 10058
0 Delivard_Product_Images_-_2025-04-09T161902.586.jpg 600 600 N N Y 11452 1317 product 10015 M 0 10015
0 Delivard_Product_Images_-_2025-04-09T161752.003.jpg 600 600 N N Y 11461 1319 product 10016 M 0 10016
0 Delivard_Product_Images_-_2025-04-09T161752.003.jpg 600 600 N N Y 11465 1323 product 10016 M 0 10016
0 Delivard_Product_Images_-_2025-04-09T161825.475.jpg 600 600 N N Y 11467 1318 product 10013 M 0 10013
0 Light_Blue.jpg 600 600 N N Y 11726 1396 product 9993 M 0 9993
0 Golden.jpg 600 600 N N Y 11731 1395 product 9994 M 0 9994
0 Black_czso-u6.jpg 600 600 N N Y 11739 1397 product 9992 M 0 9992
0 Sky_Blue.jpg 600 600 N N Y 11777 1408 product 10026 M 0 10026
0 Marble_Gray_seyz-xm.jpg 600 600 N N Y 11787 1411 product 10028 M 0 10028
0 Mint_cgju-pq.jpg 600 600 N N Y 11796 1406 product 10025 M 0 10025
0 Mint_cgju-pq.jpg 600 600 N N Y 11797 1407 product 10025 M 0 10025
0 Shiny_Silver_hmtp-eq.jpg 600 600 N N Y 11831 1420 product 10058 M 0 10058
0 Pink.jpg 600 600 N N Y 11839 1423 product 10057 M 0 10057
0 Navy_Blue_z0z9-sx.jpg 600 600 N N Y 11842 1421 product 10056 M 0 10056
0 Wonderfull_lilac.jpg 600 600 N N Y 11851 1430 product 10011 M 0 10011
0 Gorgeos_lemoun.jpg 600 600 N N Y 11854 1426 product 10010 M 0 10010
0 Wanderfull_Navy.jpg 600 600 N N Y 11863 1428 product 10012 M 0 10012
0 Wanderfull_Navy.jpg 600 600 N N Y 11864 1429 product 10012 M 0 10012
0 Yellow_Titanium.jpg 600 600 N N Y 11905 1442 product 10032 M 0 10032
0 Gray_Titanium.jpg 600 600 N N Y 11921 1447 product 10031 M 0 10031
0 Black_Titanium.jpg 600 600 N N Y 11930 1445 product 10030 M 0 10030
0 Black_Titanium.jpg 600 600 N N Y 11931 1446 product 10030 M 0 10030
0 Purple_Titanium.jpg 600 600 N N Y 11935 1439 product 10029 M 0 10029
0 Marble_Gray_0ieq-xe.jpg 600 600 N N Y 11963 1458 product 10019 M 0 10019
0 Onyx_Black_cxhz-yi.jpg 600 600 N N Y 11968 1456 product 10020 M 0 10020
0 Cobalt_Purple_2w2z-cu.jpg 600 600 N N Y 11973 1454 product 10018 M 0 10018
0 Amber_Yellow_pjew-6x.jpg 600 600 N N Y 11979 1453 product 10017 M 0 10017
0 Black_Titanium_ewsn-ze.jpg 600 600 N N Y 22847 4526 product 17125 M 0 17125
0 Gray_Titanium_qvlx-61.jpg 600 600 N N Y 22852 4528 product 17126 M 0 17126
0 Sky_Blue_Titanium.jpg 600 600 N N Y 22863 4532 product 17127 M 0 17127
0 Silver_Titanium.jpg 600 600 N N Y 22868 4530 product 17128 M 0 17128
0 Black_Titanium_ewsn-ze.jpg 600 600 N N Y 22872 4527 product 17125 M 0 17125
0 Awesome_Lavender_8ten-iq.jpg 600 600 N N Y 23689 4744 product 17833 M 0 17833
0 Black-Handsome_uwuz-4k.jpg 600 600 N N Y 23693 4746 product 17834 M 0 17834
0 White_Handsome_h8n9-jw.jpg 600 600 N N Y 23704 4750 product 17835 M 0 17835
0 Awesome_Lavender_8ten-iq.jpg 600 600 N N Y 23706 4745 product 17833 M 0 17833
0 Lemony_Awesome_rt1t-j7.jpg 600 600 N N Y 23716 4748 product 17832 M 0 17832
0 Delivard_Product_Images__27_.jpg 600 600 N N Y 23775 4767 product 17889 M 0 17889
0 Delivard_Product_Images__23_.jpg 600 600 N N Y 23777 4771 product 17883 M 0 17883
0 Delivard_Product_Images__29_.jpg 600 600 N N Y 23824 4788 product 17905 M 0 17905
0 Delivard_Product_Images__28_.jpg 600 600 N N Y 23829 4790 product 17906 M 0 17906
0 Delivard_Product_Images__30_.jpg 600 600 N N Y 23830 4789 product 17904 M 0 17904
0 Delivard_Product_Images__25_.jpg 600 600 N N Y 23798 4770 product 17882 M 1 17882
0 Delivard_Product_Images__25_.jpg 600 600 N N Y 23801 4773 product 17882 M 1 17882
0 Delivard_Product_Images__25_.jpg 600 600 N N Y 23803 4775 product 17882 M 1 17882