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 (
    11557, 11558, 11568, 11569, 11464, 11466, 
    11468, 11549, 11554, 11556, 11033, 
    11032, 11031, 11028, 11027, 11550, 
    11553, 11358, 11359, 11107, 11106, 
    11104, 11141, 11142, 11122, 11121, 
    10996, 10993, 11008, 11133, 11135, 
    11356, 11357, 10982, 10978, 10983, 
    11140, 11139
  ) 
ORDER BY 
  cscart_images_links.position, 
  cscart_images_links.pair_id

Query time 0.00261

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "95.51"
    },
    "ordering_operation": {
      "using_filesort": true,
      "cost_info": {
        "sort_cost": "40.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": 40,
            "rows_produced_per_join": 40,
            "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 (11557,11558,11568,11569,11464,11466,11468,11549,11554,11556,11033,11032,11031,11028,11027,11550,11553,11358,11359,11107,11106,11104,11141,11142,11122,11121,10996,10993,11008,11133,11135,11356,11357,10982,10978,10983,11140,11139)))",
            "cost_info": {
              "read_cost": "23.51",
              "eval_cost": "4.00",
              "prefix_cost": "27.51",
              "data_read_per_join": "3K"
            },
            "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": 40,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "10.00",
              "eval_cost": "4.00",
              "prefix_cost": "41.51",
              "data_read_per_join": "30K"
            },
            "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": 40,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "10.00",
              "eval_cost": "4.00",
              "prefix_cost": "55.51",
              "data_read_per_join": "23K"
            },
            "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 Delivard_v2gy-fm.jpg 600 600 N N N 43472 10983 product 33740 M 0 33740
0 Delivard_6tzm-fg.jpg 600 600 N N N 43473 10982 product 33750 M 0 33750
0 Untitled_design_-_2026-01-19T224612.646.jpg 600 600 N N N 43509 10993 product 33781 M 0 33781
0 image_2026-01-19_234103160.png 600 600 N N N 43550 10996 product 33807 M 0 33807
0 image_2026-01-19_234821884.png 600 600 N N N 43564 10978 product 33821 M 0 33821
0 image_2026-01-20_000117075.png 600 600 N N N 43579 11008 product 33831 M 0 33831
0 Untitled_design_-_2026-01-20T033812.683.jpg 600 600 N N N 43716 11027 product 33924 M 0 33924
0 image_2026-01-20_141657148.png 600 600 N N N 43770 11031 product 33966 M 0 33966
0 image_2026-01-20_141913646.png 600 600 N N N 43778 11032 product 33974 M 0 33974
0 image_2026-01-20_143104117.png 600 600 N N N 43799 11028 product 33995 M 0 33995
0 image_2026-01-22_010436296.png 600 600 N N N 44001 11106 product 34186 M 0 34186
0 Untitled_design__13_.png 600 600 N N N 44034 11133 product 34215 M 0 34215
0 image_2026-01-22_013556557.png 600 600 N N N 44054 11121 product 34230 M 0 34230
0 Untitled_design_-_2026-01-22T015133.016.jpg 600 600 N N N 44093 11141 product 34269 M 0 34269
0 image_2026-01-22_020808687.png 600 600 N N N 44134 11139 product 34305 M 0 34305
0 image_2026-01-22_020908437.png 600 600 N N N 44139 11140 product 34310 M 0 34310
0 Untitled_design_-_2026-01-26T210409.151.jpg 600 600 N N N 45156 11356 product 35085 M 0 35085
0 Untitled_design_-_2026-01-26T211155.091.jpg 600 600 N N N 45168 11357 product 35092 M 0 35092
0 Untitled_design_-_2026-01-26T211604.687.jpg 600 600 N N N 45175 11358 product 35099 M 0 35099
0 Untitled_design_-_2026-01-26T212406.622.jpg 600 600 N N N 45188 11359 product 35107 M 0 35107
0 Untitled_design_-_2026-01-29T015542.197.jpg 600 600 N N N 45906 11464 product 35597 M 0 35597
0 Untitled_design_-_2026-02-01T185328.748.jpg 600 600 N N N 46526 11549 product 36011 M 0 36011
0 image_2026-02-01_185506100.png 900 900 N N N 46531 11550 product 36016 M 0 36016
0 Untitled_design_-_2026-02-01T192123.847.jpg 600 600 N N N 46591 11557 product 36051 M 0 36051
0 image_2026-02-03_014503124.png 600 600 N N N 46630 11568 product 36085 M 0 36085
0 image_2026-02-03_014921261.png 600 600 N N N 46640 11569 product 36090 M 0 36090
0 image_2026-01-20_142220652.png 600 600 N N N 43786 11033 product 33982 M 1 33982
0 image_2026-01-22_005253095.png 600 600 N N N 43986 11104 product 34171 M 1 34171
0 Untitled_Image__77_.jpg 900 900 N N N 43991 11107 product 34176 M 1 34176
0 image_2026-01-22_013720850.png 600 600 N N N 44064 11122 product 34240 M 1 34240
0 Untitled_design__14_.png 600 600 N N N 44059 11135 product 34235 M 5 34235
0 Untitled_design_-_2026-01-22T020231.200.jpg 600 600 N N N 44118 11142 product 34289 M 5 34289
0 Untitled_design_-_2026-01-29T020636.650.jpg 600 600 N N N 45941 11468 product 35617 M 5 35617
0 image_2026-02-01_190157158.png 600 600 N N N 46556 11553 product 36026 M 5 36026
0 Untitled_design_-_2026-02-01T190807.960.jpg 600 600 N N N 46571 11554 product 36036 M 5 36036
0 Untitled_design_-_2026-02-01T191008.897.jpg 600 600 N N N 46586 11556 product 36046 M 5 36046
0 Untitled_design_-_2026-02-01T192533.863.jpg 600 600 N N N 46601 11558 product 36056 M 5 36056
0 Untitled_design_-_2026-01-29T020232.725.jpg 600 600 N N N 45926 11466 product 35607 M 6 35607