CRAFTERCMS-650
Fixed SQL syntax error
Merge pull request #183 from dejan-brkic/master

CRAFTERCMS-650