I can start my car then when I put it in drive it will cut off. on 1999 Infiniti Q45

when I am driving car will start jerking while I am driving car. also car will cut off while I a sitting at a stop sign. check engine light is on. it is telling me maf circuit malfunction, knock sensor 1 and 2. that is it. could one of these sensors be causing car to act the way I explain. need help thank you.

Asked by for the 1999 Infiniti Q45
poss maf senor or circuit issue, seek proper diag and est to repair