Reset select columns after aggregate query. Fixes #1516.