[ticket/13229] Fix overloading memberlist with redundant SQL queries

<a href="https://tracker.phpbb.com/browse/PHPBB3-13229">PHPBB3-13229</a>.