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 (
    3458, 3459, 3460, 3461, 2379, 2382, 2380, 
    2381, 2375, 2387, 2388, 2389, 2390, 
    2391, 4294, 4295, 2097, 2096, 2095, 
    2094, 2093, 5624, 5625
  ) 
ORDER BY 
  cscart_images_links.position, 
  cscart_images_links.pair_id

Query time 0.00144

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "55.21"
    },
    "ordering_operation": {
      "using_filesort": true,
      "cost_info": {
        "sort_cost": "23.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": 23,
            "rows_produced_per_join": 23,
            "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 (3458,3459,3460,3461,2379,2382,2380,2381,2375,2387,2388,2389,2390,2391,4294,4295,2097,2096,2095,2094,2093,5624,5625)))",
            "cost_info": {
              "read_cost": "13.81",
              "eval_cost": "2.30",
              "prefix_cost": "16.11",
              "data_read_per_join": "2K"
            },
            "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": 23,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "5.75",
              "eval_cost": "2.30",
              "prefix_cost": "24.16",
              "data_read_per_join": "17K"
            },
            "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": 23,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "5.75",
              "eval_cost": "2.30",
              "prefix_cost": "32.21",
              "data_read_per_join": "13K"
            },
            "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 4_sm98-wc.jpg 600 600 N N Y 14175 2093 product 10826 M 0 10826
0 6_8gcy-ef.jpg 600 600 N N Y 14181 2095 product 10828 M 0 10828
0 5_ncmg-cc.jpg 600 600 N N Y 14184 2094 product 10827 M 0 10827
0 7_kdtl-eq.jpg 600 600 N N Y 14190 2096 product 10829 M 0 10829
0 9_isja-20.jpg 600 600 N N Y 14195 2097 product 10830 M 0 10830
0 Double_A_Paper_Image.jpg 600 600 N N Y 15039 2379 product 11485 M 0 11485
0 Double_A_Paper_Image.jpg 600 600 N N Y 15040 2380 product 11485 M 0 11485
0 Double_A_Paper_Image.jpg 600 600 N N Y 15041 2381 product 11485 M 0 11485
0 Double_A_Paper_Image.jpg 600 600 N N Y 15042 2382 product 11485 M 0 11485
0 Delivard_Product_Images__4_.jpg 600 600 N N Y 15058 2391 product 11481 M 0 11481
0 Delivard_Product_Images_-_2025-07-03T115453.888.jpg 600 600 N N Y 15064 2375 product 11488 M 0 11488
0 Delivard_Product_Images_-_2025-07-03T115559.657_ryvv-bm.jpg 600 600 N N Y 15069 2387 product 11493 M 0 11493
0 Delivard_Product_Images_-_2025-07-03T115726.323_i6no-w2.jpg 600 600 N N Y 15074 2388 product 11498 M 0 11498
0 Delivard_Product_Images_-_2025-07-03T115644.109_uhg3-ci.jpg 600 600 N N Y 15079 2389 product 11503 M 0 11503
0 Delivard_Product_Images_-_2025-07-03T115826.188_gde4-we.jpg 600 600 N N Y 15084 2390 product 11508 M 0 11508
0 Delivard_Product_Images_-_2025-07-30T095014.044.jpg 600 600 N N Y 18559 3458 product 14045 M 0 14045
0 Delivard_Product_Images_-_2025-07-30T095051.791.jpg 600 600 N N Y 18563 3459 product 14046 M 0 14046
0 Delivard_Product_Images_-_2025-07-30T095139.680.jpg 600 600 N N Y 18567 3460 product 14047 M 0 14047
0 Delivard_Product_Images_-_2025-07-30T095205.927.jpg 600 600 N N Y 18571 3461 product 14048 M 0 14048
0 Untitled_design_-_2025-08-17T222228.079.jpg 600 600 N N Y 22004 4294 product 16727 M 0 16727
0 Untitled_design_-_2025-08-17T221954.249.jpg 600 600 N N Y 22012 4295 product 16730 M 0 16730
0 30_-_2025-09-23T004215.011.jpg 600 600 N N Y 26158 5624 product 19911 M 0 19911
0 MXK83AB.jpeg 1144 1144 N N Y 26160 5625 product 19912 M 0 19912