SELECT 
  category_id 
FROM 
  cscart_categories 
WHERE 
  id_path LIKE '5372/6196/%'

Query time 0.00048

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "28.90"
    },
    "table": {
      "table_name": "cscart_categories",
      "access_type": "range",
      "possible_keys": [
        "id_path"
      ],
      "key": "id_path",
      "used_key_parts": [
        "id_path"
      ],
      "key_length": "767",
      "rows_examined_per_scan": 57,
      "rows_produced_per_join": 57,
      "filtered": "100.00",
      "using_index": true,
      "cost_info": {
        "read_cost": "17.50",
        "eval_cost": "11.40",
        "prefix_cost": "28.90",
        "data_read_per_join": "337K"
      },
      "used_columns": [
        "category_id",
        "id_path"
      ],
      "attached_condition": "(`webmarco`.`cscart_categories`.`id_path` like '5372/6196/%')"
    }
  }
}

Result

category_id
6231
6252
6269
6282
6297
6318
6329
6344
6356
6369
6376
6432
6446
6460
6470
6477
6486
6497
6503
6511
6517
6523
6533
6546
6557
6586
6602
6611
6623
6640
6657
6671
6707
6732
6751
6766
6778
6789
6817
6826
6833
6843
6849
6861
8986
6887
6901
6912
6922
6940
6952
6970
6985
6998
7007
7016
7044