Hello! Welcome to justanswer!
Ok, replace the plugs and the air filter. If the 172 comes back, it would be a problem with the Airflow Sensor. I'm pretty sure Beck Arnley has a year or more warranty so you shouldn't have to pay again for that part.
No, that would have a different code. You are dealing with a defective airflow sensor and dirty plugs.
Thanks for your excellent answers.