select grantee_id,
privilege
from acs_permissions
where object_id = :on_which_calendar
update acs_activities
set name = :name,
description = :description
where activity_id
in (
select activity_id
from acs_events
where event_id = :cal_item_id
)
select interval_id
from timespans
where timespan_id
in (
select timespan_id
from acs_events
where event_id = :cal_item_id
)