Fix query.
Merge pull request #435 from nZEDb/master

Fix query.