P0171 - Fuel Injection System Lean
P0300 - Multiple Cylinder Misfire
Your car may have the same problem as mine. There is a recall on it.
NTB07-081 VOLUNTARY RECALL CAMPAIGN
2002, 2005, 2006 ALTIMA, SENTRA; VOLUNTARY RECALL CAMPAIGN ECM REPROGRAM (2.5L)
Nissan has determined that a defect which relates to motor vehicle safety exists in some 2002 and 2005-2006 model year Nissan Altima and Sentra vehicles equipped with the 2.5 liter engine. On some of these vehicles there is a possibility that the engine might stop running while being driven due to the program in the Electronic Control Module (engine computer). If the engine stops running while driving, this could result in a crash without warning. To prevent this potential condition, Nissan is conducting a Voluntary Safety Recall Campaign to reprogram the Electronic Control Module.