Fixed SQL syntax
Merge pull request #24 from swansond/alpha

Fixed SQL syntax