Calculate unread counts in one sql statement.

Horifically inefficient doing a query per feed/category.