Fix for "u.Photo isn't in GROUP BY" Fatal Error
Merge pull request #2024 from shadowdare/patch-12

[2.1.1] Fix for "u.Photo isn't in GROUP BY" Fatal Error