SELECT 
  category_id 
FROM 
  cscart_categories 
WHERE 
  id_path LIKE '265/280/%'

Query time 0.00033

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "4.70"
    },
    "table": {
      "table_name": "cscart_categories",
      "access_type": "ALL",
      "possible_keys": [
        "id_path"
      ],
      "rows_examined_per_scan": 40,
      "rows_produced_per_join": 22,
      "filtered": "57.50",
      "cost_info": {
        "read_cost": "2.40",
        "eval_cost": "2.30",
        "prefix_cost": "4.70",
        "data_read_per_join": "92K"
      },
      "used_columns": [
        "category_id",
        "id_path"
      ],
      "attached_condition": "(`gaseus`.`cscart_categories`.`id_path` like '265/280/%')"
    }
  }
}

Result

category_id
306
307
309
283
292
287
282
293
288
286
284
285
314
289
291
294
290
301
295
300
302
303
304
305