[ticket/12712] Add user_password to GROUP BY clause to fix query for mssql

Ticket: https://tracker.phpbb.com/browse/PHPBB3-12712