postgresql7.1 select user_id, member_state, email_verified_p, trunc(date_part('epoch', age(password_changed_date))/(60*60*24)) as password_age_days from cc_users where email = :email