Fix topic level next_unread query