Change comment count query to dynamic db_select for user activity stats