Fixed b0rken sql
Merge pull request #264 from pvankouteren/sql-fix

Fixed b0rken sql