I used to get the infamous P0440 code when I ran the K&N oiled filter. It only popped up at one specific point in my commute to work, accelerating uphill an around a corner. I could clear it and it would return a week later.
I had my MAF cleaned (under warranty) and I removed the K&N and never got the code again.