Currently I use the following CTE to grab a category and any category below it:
WITH RECURSIVE tree AS ( SELECT * FROM ( SELECT categoryId, cat