There was a fatal error in the SQL Statement.
Error number: -2147217900
Error Description: Incorrect syntax near the keyword 'AND'.
Error Source: Microsoft OLE DB Provider for SQL Server
SQL State: 42000
Native Error: 156
SQL: SELECT '' AS [OrganiserName] , '' AS [OrganiserURL] , 0 AS [TournamentId] , '' AS [TournamentName] , '' AS [TournamentURL] , [Category].[CategoryName] AS [RoundName], [PageUrl].[Url] AS [RoundURL]FROM [Category] INNER JOIN [PageUrl] ON [Category].[CategoryId]=[PageUrl].[EntityId] WHERE [Category].[CategoryId]= AND [Category].[ParentCategoryId]=0 UNION SELECT [Parent].[CategoryName], [ParentPageURL].[Url] , [Category].[CategoryId] , [Category].[CategoryName] , [PageUrl].[Url] , '' , '' FROM [Category] INNER JOIN [PageUrl] ON [Category].[CategoryId]=[PageUrl].[EntityId] INNER JOIN [Category] AS [Parent] ON [Parent].[CategoryId]=[Category].[ParentCategoryId] INNER JOIN [PageUrl] AS [ParentPageURL] ON [Parent].[CategoryId]=[ParentPageUrl].[EntityId] WHERE [Category].[CategoryId]= AND [Parent].[ParentCategoryId]=0 UNION SELECT [GrandParent].[CategoryName], [GrandParentPageURL].[Url] , [Category].[ParentCategoryId] , [Parent].[CategoryName], [ParentPageURL].[Url] , [Category].[CategoryName] , [PageUrl].[Url] FROM (((([Category] INNER JOIN [PageUrl] ON [Category].[CategoryId]=[PageUrl].[EntityId]) INNER JOIN [Category] AS [Parent] ON [Parent].[CategoryId]=[Category].[ParentCategoryId]) INNER JOIN [PageUrl] AS [ParentPageURL] ON [Parent].[CategoryId]=[ParentPageUrl].[EntityId]) INNER JOIN [Category] AS [GrandParent] ON [GrandParent].[CategoryId]=[Parent].[ParentCategoryId]) INNER JOIN [PageUrl] AS [GrandParentPageURL] ON [GrandParent].[CategoryId]=[GrandParentPageUrl].[EntityId] WHERE [Category].[CategoryId]=
Error number: -2147217900
Error Description: Incorrect syntax near the keyword 'AND'.
Error Source: Microsoft OLE DB Provider for SQL Server
SQL State: 42000
Native Error: 156
SQL: SELECT '' AS [OrganiserName] , '' AS [OrganiserURL] , 0 AS [TournamentId] , '' AS [TournamentName] , '' AS [TournamentURL] , [Category].[CategoryName] AS [RoundName], [PageUrl].[Url] AS [RoundURL]FROM [Category] INNER JOIN [PageUrl] ON [Category].[CategoryId]=[PageUrl].[EntityId] WHERE [Category].[CategoryId]= AND [Category].[ParentCategoryId]=0 UNION SELECT [Parent].[CategoryName], [ParentPageURL].[Url] , [Category].[CategoryId] , [Category].[CategoryName] , [PageUrl].[Url] , '' , '' FROM [Category] INNER JOIN [PageUrl] ON [Category].[CategoryId]=[PageUrl].[EntityId] INNER JOIN [Category] AS [Parent] ON [Parent].[CategoryId]=[Category].[ParentCategoryId] INNER JOIN [PageUrl] AS [ParentPageURL] ON [Parent].[CategoryId]=[ParentPageUrl].[EntityId] WHERE [Category].[CategoryId]= AND [Parent].[ParentCategoryId]=0 UNION SELECT [GrandParent].[CategoryName], [GrandParentPageURL].[Url] , [Category].[ParentCategoryId] , [Parent].[CategoryName], [ParentPageURL].[Url] , [Category].[CategoryName] , [PageUrl].[Url] FROM (((([Category] INNER JOIN [PageUrl] ON [Category].[CategoryId]=[PageUrl].[EntityId]) INNER JOIN [Category] AS [Parent] ON [Parent].[CategoryId]=[Category].[ParentCategoryId]) INNER JOIN [PageUrl] AS [ParentPageURL] ON [Parent].[CategoryId]=[ParentPageUrl].[EntityId]) INNER JOIN [Category] AS [GrandParent] ON [GrandParent].[CategoryId]=[Parent].[ParentCategoryId]) INNER JOIN [PageUrl] AS [GrandParentPageURL] ON [GrandParent].[CategoryId]=[GrandParentPageUrl].[EntityId] WHERE [Category].[CategoryId]=
Error number: -2147217900
Error Description: Incorrect syntax near '='.
Error Source: Microsoft OLE DB Provider for SQL Server
SQL State: 42000
Native Error: 102
SQL: SELECT '' AS [OrganiserName] , '' AS [OrganiserURL] , 0 AS [TournamentId] , '' AS [TournamentName] , '' AS [TournamentURL] , [Category].[CategoryName] AS [RoundName], [PageUrl].[Url] AS [RoundURL]FROM [Category] INNER JOIN [PageUrl] ON [Category].[CategoryId]=[PageUrl].[EntityId] WHERE [Category].[CategoryId]= AND [Category].[ParentCategoryId]=0 UNION SELECT [Parent].[CategoryName], [ParentPageURL].[Url] , [Category].[CategoryId] , [Category].[CategoryName] , [PageUrl].[Url] , '' , '' FROM [Category] INNER JOIN [PageUrl] ON [Category].[CategoryId]=[PageUrl].[EntityId] INNER JOIN [Category] AS [Parent] ON [Parent].[CategoryId]=[Category].[ParentCategoryId] INNER JOIN [PageUrl] AS [ParentPageURL] ON [Parent].[CategoryId]=[ParentPageUrl].[EntityId] WHERE [Category].[CategoryId]= AND [Parent].[ParentCategoryId]=0 UNION SELECT [GrandParent].[CategoryName], [GrandParentPageURL].[Url] , [Category].[ParentCategoryId] , [Parent].[CategoryName], [ParentPageURL].[Url] , [Category].[CategoryName] , [PageUrl].[Url] FROM (((([Category] INNER JOIN [PageUrl] ON [Category].[CategoryId]=[PageUrl].[EntityId]) INNER JOIN [Category] AS [Parent] ON [Parent].[CategoryId]=[Category].[ParentCategoryId]) INNER JOIN [PageUrl] AS [ParentPageURL] ON [Parent].[CategoryId]=[ParentPageUrl].[EntityId]) INNER JOIN [Category] AS [GrandParent] ON [GrandParent].[CategoryId]=[Parent].[ParentCategoryId]) INNER JOIN [PageUrl] AS [GrandParentPageURL] ON [GrandParent].[CategoryId]=[GrandParentPageUrl].[EntityId] WHERE [Category].[CategoryId]=