Merge pull request #161 from BNoiZe/master

Fixed a typo in a query refs #1287