internal error processing query with aggregate functions in fastload