fixed SQL syntax
Merge pull request #65 from Sampiero/master

fixed SQL Syntax