I think that the start of my problem is that parent children and grandchildren don\'t have the ID\'s in hierarchical order, the parent category was added after children cate