update forums_forums set is_lams= true where forum_id = :forum_id select dca.package_id from dotlrn_community_applets dca,apm_packages ap where community_id=:community_id and ap.package_id=dca.package_id and ap.package_key='forums'