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

CRAFTERCMS-879