update dotlrn_user_rels set type_id= :type_id where rel_id = (select rel_id from dotlrn_users where user_id= :user_id)