Fixed mysql syntax error
Merge pull request #252 from sheebans/master

Fixed mysql syntax error