Are you still seeing this query as the slowdown cause?

select COUNT(t1.POST_ID) as posts, sum(t1.POST_IS_TOPIC) as topics from ubbt_POSTS as t1

That is only run when the options to show total unread topics/posts is turned on.