CRAFTERCMS-879
Fixed SQL query causing issue.
CRAFTERCMS-879
Fixed SQL query causing issue.
Merge pull request #267 from dejan-brkic/master

CRAFTERCMS-879