[Event] Before query to list unapproved and deleted posts

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