CRAFTERCMS-650
Fixed SQL syntax error
Merge pull request #181 from dejan-brkic/2.3.x

CRAFTERCMS-650