Holy crap man, sorry you bought a new MAF. I wish I had saw this thread sooner so I could tell you not to do that. Shoot, I have a spare 240 MAF that I could have given you. Also, MAFs usually aren't an intermittent problem. Typically when they go, they GO. Then the car goes into limp mode. It'll still start and drive, but you wont be able to rev past 2600 RPM or something.
Also, I don't know if its just me, but I have never, EVER been to a good NAPA. I've been to about 5, and either the guys have absolutely no idea what they are talking about, or they refuse to accept a core because it has a scratch on it, or they look up/sell you the wrong part. If I were you, I'd get a coolant temp sensor from
www.courtesyparts.com
http://www.courtesyparts.com/22630j-eng ... cPath=1418&
$25...
Really what you need to do is start going through a list next time this happens... check to see if you're getting spark, and fuel, or too much fuel, etc.
Also, the KA24DE doesn't have a camshaft sensor, where are you looking up these ECU codes?