select one_line, description, process_task_id FROM pm_process_task WHERE process_task_id in ([join $process_task_id ","]) ORDER BY process_task_id select p.first_names || ' ' || p.last_name as who, p.person_id FROM persons p, acs_rels r, membership_rels mr WHERE r.object_id_one = :user_group_id and mr.rel_id = r.rel_id and p.person_id = r.object_id_two and member_state = 'approved' ORDER BY p.first_names, p.last_name select one_line, role_id FROM pm_roles ORDER BY sort_order delete from pm_process_task_assignment where process_task_id in ([join $process_task_id ","]) insert into pm_process_task_assignment (process_task_id, role_id, party_id) values (:t_id, :r_id, :p_id) select party_id FROM pm_process_task_assignment WHERE process_task_id = :tiid select role_id FROM pm_process_task_assignment a WHERE process_task_id = :tiid