basta adicionar
DISTINCT SELECT COUNT(DISTINCT profile_id) totalCOUNT FROM ptb_profile_views...
e ecoar o alias,
$views['totalCOUNT']
DISTINCT SELECT COUNT(DISTINCT profile_id) totalCOUNT FROM ptb_profile_views...
$views['totalCOUNT']