Water your plants from the bottom, put an old tee shirt on the soil, and get some fly paper. They probably came in with your soil. A bitch to finally get rid of but with perseverance it can be done. As to your plants, I don't think the problem is being caused by the Gnats.