fixed query that referenced an old column
bumped version to 0.8.6
Merge branch 'hotfix-0.8.6'