Well, since you have no history with the car it could be a lot of things. Because you had a mechanic say it was knocking, I would change out the spark plugs ASAP. I would personally use Autolite 605s in your position.
If that doesn’t work I’d move on to the MAF and MAP sensors.
Good luck.