Did the check engine light come on again? let me know Thanks ROY!
Does it just stall at idle , does it drive ok off idle and accelerate ok, let me know Thanks ROY!
If your car only stalls at idle this could be caused by the idle speed control valve, it is located under the throttle body, and when they go bad the engine can stall at idle , it will not correct for engine idle for load and stall out. this is the most common problem I have seen on the 1997 maxima, Thanks let me know if you have more questions,ROY!
Here is a pic of the valve it is under the throttle body below where the throttle cables hook up I would replace this first, Thanks ROY!
You can repost to this or re list and ask for me if you need more help make sure you ask for( ROY Nissan master) there are 2 Roys! Thanks again.