Probably an air leak. Search thread titles for your codes...and search jfoj's sig for link to 'fix your bmw' thread. There are many hoses that can break, but the first is usually the lower intake boot.
I'm so depressed. No one wants to come see me in NYC: Sat, Oct. 8, 6 p.m. at Greenwich Village Comedy Club.
Mangofy your E46!