SELECT 
  category_id 
FROM 
  cscart_categories 
WHERE 
  id_path LIKE '2743/%'

Query time 0.00036

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "14.21"
    },
    "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": 31,
      "rows_produced_per_join": 31,
      "filtered": "100.00",
      "index_condition": "(`cscart_db`.`cscart_categories`.`id_path` like '2743/%')",
      "cost_info": {
        "read_cost": "11.11",
        "eval_cost": "3.10",
        "prefix_cost": "14.21",
        "data_read_per_join": "86K"
      },
      "used_columns": [
        "category_id",
        "id_path"
      ]
    }
  }
}

Result

category_id
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2926
2934
2991
2992
2993
2994
2759
2760
2761
2762
2763
2764
2765
2919
3006
3014