select faq_id from faq_q_and_as
where entry_id = $q_and_a_id
SELECT package_id
FROM dotlrn_community_applets
WHERE community_id = :community_id and applet_id = (select applet_id from dotlrn_applets where applet_key = 'dotlrn_faq')
select faq__new_faq (:faq_id, :faq_name,:separate_p,'faq', now(), :user_id,:creation_ip,:package_id);