SELECT 
  category_id 
FROM 
  cscart_categories 
WHERE 
  id_path LIKE '2698/2878/%'

Query time 0.00086

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "18.26"
    },
    "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": 40,
      "rows_produced_per_join": 40,
      "filtered": "100.00",
      "index_condition": "(`s2cart`.`cscart_categories`.`id_path` like '2698/2878/%')",
      "cost_info": {
        "read_cost": "14.26",
        "eval_cost": "4.00",
        "prefix_cost": "18.26",
        "data_read_per_join": "141K"
      },
      "used_columns": [
        "category_id",
        "id_path"
      ]
    }
  }
}

Result

category_id
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2897
2898
2896
2899
2900
2901
2902
2906
2903
2904
2905
2907
2909
2908
2910
2911
2912
2913
2914
2920
2921
2915
2916
2917
2918
2919