Fixed getParent() in nested

When you calculate the parent node here, if you order by "parent DESC", then you need to LIMIT 0, 1
If you limit 1, 1, it takes the second result, which, in a 2 levels tree is the root, not the right category