Fix stat query for group by clause xibosignage/xibo#1219
Fix stat query for group by clause
xibosignage/xibo#1219

xibosignage/xibo-cms,dasgarner/xibo-cms,PeterMis/xibo-cms,xibosignage/xibo-cms,alexharrington/xibo-cms,dasgarner/xibo-cms,PeterMis/xibo-cms,alexharrington/xibo-cms,alexharrington/xibo-cms,PeterMis/xibo-cms,dasgarner/xibo-cms,PeterMis/xibo-cms,xibosignage/xibo-cms,xibosignage/xibo-cms,dasgarner/xibo-cms,dasgarner/xibo-cms,guruevi/xibo-cms,alexharrington/xibo-cms,guruevi/xibo-cms,xibosignage/xibo-cms,PeterMis/xibo-cms,alexharrington/xibo-cms,guruevi/xibo-cms,dasgarner/xibo-cms,xibosignage/xibo-cms