[sql-server] Getting an odd error, SQL Server query using `WITH` clause