postgresql7.1 select acs_object__name(:object_id) select party_id, acs_object__name(party_id) as name from parties