[ticket/11717] Use topic_posts_approved instead of topic_replies

Due to the move to soft-delete, the topic_replies column no longer exists
in the topics table. Instead, the column topic_posts_approved should be used.

Ticket: http://tracker.phpbb.com/browse/PHPBB3-11717

PHPBB3-11717