You don't appear to be using the PageContents recordset on this page... I'm not sure if it is needed, but it was filtered by the "perm" URL parameter, but I think it is supposed to be filtered with the "sub" parameter.
The Categories recordset used an INNER JOIN for getting the parent category, which caused it to not show a result if it has no parent category, like this one. The solution was to change it to use a LEFT OUTER JOIN instead.
The page appears to be working now.