SELECT 
  a.category_id 
FROM 
  cscart_categories as a 
  LEFT JOIN cscart_categories as b ON b.category_id IN (3648) 
WHERE 
  a.id_path LIKE CONCAT(b.id_path, '/%')

Query time 0.00250

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "1494.60"
    },
    "nested_loop": [
      {
        "table": {
          "table_name": "b",
          "access_type": "const",
          "possible_keys": [
            "PRIMARY",
            "p_category_id"
          ],
          "key": "PRIMARY",
          "used_key_parts": [
            "category_id"
          ],
          "key_length": "3",
          "ref": [
            "const"
          ],
          "rows_examined_per_scan": 1,
          "rows_produced_per_join": 1,
          "filtered": "100.00",
          "cost_info": {
            "read_cost": "0.00",
            "eval_cost": "0.20",
            "prefix_cost": "0.00",
            "data_read_per_join": "5K"
          },
          "used_columns": [
            "category_id",
            "id_path"
          ]
        }
      },
      {
        "table": {
          "table_name": "a",
          "access_type": "index",
          "key": "id_path",
          "used_key_parts": [
            "id_path"
          ],
          "key_length": "767",
          "rows_examined_per_scan": 6988,
          "rows_produced_per_join": 776,
          "filtered": "11.11",
          "using_index": true,
          "cost_info": {
            "read_cost": "97.00",
            "eval_cost": "155.27",
            "prefix_cost": "1494.60",
            "data_read_per_join": "4M"
          },
          "used_columns": [
            "category_id",
            "id_path"
          ],
          "attached_condition": "(`webmarco`.`a`.`id_path` like <cache>(concat('3648','/%')))"
        }
      }
    ]
  }
}

Result

category_id
3550
4831
4922
5055
5190
5258
3573
5311
5373
5440
3595
5490
5534
5581
5638
5683
5729
5808
5906
6010
6110
6247
6399
6526
6659
6800
6923
7085
7223
3600
7319
7642
3605
7676
3608
6834
6913
6984
7068
7262
7327
7580
7658
7733
7779
7828
7904
3616
6217
6335
6456
6551
3623
3628
3634
3642
5299
5450
5491
5550
5602
5653
5718
3651
3658
3659
3660
3664
3666
4233
4284
3669
4310
4726
3673
3685
4124
4281
4341
4486
4559
4676
4760
4853
5042
5152
5222
3693
3964
3702
3712
3726
3949
3735
3897
3905
3742
3751
3761
3772
3778
3786
3796
3807
3816
3824
3832
3839
3857
3869
3878
3890
3913
3924
3938
5831
5940
6019
6070
6678
9868
9869
9910
9911
9912