CRAFTERCMS-879
Fixed SQL query causing issue.
CRAFTERCMS-879
Fixed SQL query causing issue.
Merge pull request #264 from dejan-brkic/2.2.x

CRAFTERCMS-879