p.id in (select __caarray_filter_alias__.attribute_value from (select pe.attribute_value from csm_user_pe upe, csm_protection_element pe, csm_user u where pe.object_id= 'gov.nih.nci.caarray.domain.project.Project' and pe.attribute='id' and u.login_name=:USER_NAME and pe.application_id=:APPLICATION_ID and upe.protection_element_id = pe.protection_element_id and upe.user_id = u.user_id) __caarray_filter_alias__))