select email
from parties
where party_id = :user_id
select priv_email
from users
where user_id = :user_id
select folder_id from cr_folders
where label = 'Email_Images'
select object_id_two from acs_rels
where rel_type = 'email_image_rel' and object_id_one = :user_id
update users
set priv_email = :level
where user_id = :user_id