query fix
Merge pull request #15 from terrywbrady/master

query fix