A group by expression can only contain non-constant scalars that are comparable by the server. The expression with type '{0}' ...