little SQL bugfix
Merge pull request #164 from davvitt/issue#163-bugfixSQL

little SQL bugfix