postgresql7.1
select element_id, name, description
from portal_elements
where element_id in (
select element_id
from portal_available_element_map
where acs_permission__permission_p(element_id, :user_id, 'read') = 't' and portal_id = :default_portal_id
except
select element_id from portal_element_map where portal_id = :portal_id
)