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

CRAFTERCMS-879