Fixed fetch1/fetchn when used as aggregation

fetch1 and fetchn were returning error messages for a correctly formed call when using them as aggregation. This bug was obviously introduced when changing the LIMIT syntax.