Getting this error:
{"Incorrect syntax near the keyword 'IS'.\r\nInvalid usage of the option NEXT in the FETCH statement."}
On this query:
IEnumerable<UserProfileIndex> searchResults = await query
.OrderBy(x => x.Name == null)
.ThenBy(x => x.Name)
.Skip(req.Skip)
.Take(req.Take)
.ListAsync();
Using sql server.