select count(email) from parties where email = lower(:email) and party_id <> :user_id