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

Fatal error with the message "u.Photo isn't in GROUP BY" occurs when viewing a conversation. This might be due to MySQL strict mode.