I have had a similar problem...
I purchased my protege in october of last year, its a 2002 es, manual. The original owner had the motor replaced. the body has 85k on it, while the motor has somewhere around 40k. The CEL came on back in november, sometimes flashing, sometimes not. I took it in...