fix #89. Group by combined with where not working