1997 Nissan Maxima

What would make my car idle but die when you put it in any gear it sounds like it idles so low that it dies it wasn’t doing this til my fuel filter was replaced with a new one to stop it from shaking and boggin down like it coulndnt breath an I used some Lucas gas treatment an some throatal body cleaner