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

Query time 0.00208

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('6473/7080','/%')))"
        }
      }
    ]
  }
}

Result

category_id
7283
7288
7302
7308
7318
7332
7342
7352
7370
7382
7394
7592
7604
7614
7652
7659
7663
7664
7670
7803
7819
7824
7401
7402
7403
7404
7405
7406
7407
7408
7409
7410
7411
7755
7756
7757
7758
7759
7760
7761
7762
7412
7413
7414
7807
7808
7809
7810
7812
7415
7416
7887
7893
7417
7418
7419
7420
7945
7953
7421
7422
7423
7424
7425
7426
7427
7966
7982
7986
7987
7989
7428
7429
7430
7431
7432
7433
7434
7435
8066
8112
8113
8114
8115
8116
8117
8118
8119
8120
8121
8122
8123
8124
8125
8126
8127
8151
8152
8153
8229
8230
8231
8232
8233
8234
8235
8236
8237
8238
8239
8240
8241
8242
8243
8244
8245
8246
8247
8248
8249
7436
8017
8021
8035
8036
8039
8043
8045
8048
8052
7437
7438
7439
7440
7441
7442
8292
8293
8294
8295
8296
8297
8298
8299
8300
7443
7444
7445
7446
7447
7448
7449
7450
7451
7452
7453
7827
7834
7838
7841
7844
7848
7853
7884
7889
7894
7901
7906
7908
7913
7944
7949
7957
7964
7967