postgresql7.1 select at.pretty_name, at.pretty_plural, a.creation_date, acs_object__name(a.object_id) as object_name from acs_objects a, acs_object_types at where a.object_type = at.object_type and a.creation_user = :user_id order by at.pretty_name, creation_date desc