simplemente agregue DISTINCT
SELECT COUNT(DISTINCT profile_id) totalCOUNT FROM ptb_profile_views...
y repetir el alias,
$views['totalCOUNT']
simplemente agregue DISTINCT
SELECT COUNT(DISTINCT profile_id) totalCOUNT FROM ptb_profile_views...
y repetir el alias,
$views['totalCOUNT']