[ticket/11445] optimize no of queries in get_global_subscriptions( )

https://tracker.phpbb.com/browse/PHPBB3-11445

PHPBB3-11445