fixed corrupt sql query
Merge branch 'master' of https://github.com/simonlindberg/puss