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

Query time 0.00047

JSON explain

{
  "query_block": {
    "select_id": 1,
    "table": {
      "table_name": "b",
      "access_type": "const",
      "possible_keys": ["PRIMARY", "p_category_id"],
      "key": "PRIMARY",
      "key_length": "3",
      "used_key_parts": ["category_id"],
      "ref": ["const"],
      "rows": 1,
      "filtered": 100
    },
    "table": {
      "table_name": "a",
      "access_type": "ALL",
      "rows": 217,
      "filtered": 100,
      "attached_condition": "a.id_path like <cache>(concat('265','/%'))"
    }
  }
}

Result

category_id
266
267
268
269
270
271
272
273
275
277
278
279
280
283
285
286
291
294
299
301
308
309
313
323
325
327
334
351
370
393
431
432
434
439
442
455
459
1151
667
700
708
775
784
787
1555
1559
1560
1561
1562
1565
1567
1570
1571
1574
1579
1584
1585
1589
1590
1591
1598
1601
1602
1606
1607
1612
1614
1618
1619
1621
1622
1628
1629
1630
1636
1637
1638
1641
1688
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1668
1669
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1687