Query did not return a valid recordset: select nr, parent, folder, title from vwActive where nr= 100224 or (Nr IN (Select nr from dbo.fn_RecurseChildren('100224',0))) and contenttype in (80,84,77,79,85,88,92) order by parent, sortindex (source: Tree)