correct value of unread messages

try `SUM(reply_viewed::int)`