postgresql7.1 select content_item__delete(:item_id); select title from cr_revisions r, cr_items i where i.parent_id = etp__get_folder_id(:package_id) and i.name = :name and r.item_id = i.item_id and r.revision_id = i.live_revision select item_id from cr_items where parent_id = etp__get_folder_id(:package_id) and name = :name