Clone ->query before aggregating. Fixes #92.
Merge pull request #93 from bjornpost/fix-issue-92

Clone $this->query before aggregating. Fixes #92.