stačí přidat DISTINCT
SELECT COUNT(DISTINCT profile_id) totalCOUNT FROM ptb_profile_views...
a opakujte alias,
$views['totalCOUNT']
stačí přidat DISTINCT
SELECT COUNT(DISTINCT profile_id) totalCOUNT FROM ptb_profile_views...
a opakujte alias,
$views['totalCOUNT']