Fruit flies or fungus gnats. The first comes into your house on fruit from grocery stores the the other comes from retail stores and greenhouses.
Fruit flies lay eggs on fruit at stores and you bring them home and don't wash them. Then they hatch. I wash all fruit the minute they come into my house...
Fungus gnats live in very very wet soil and live on the decomposing stuff in potted plants. They need moisture.
Either way, you can use 1 inch cider vinegar in one solo glass. Put them near where you have the problem. I like clear so I can watch them better. Saran warp over the top taped or rubber banded around the lip. Poke holes, the size of lead to a pencil, in the Saran wrap and set somewhere off the side. They will crawl into the holes and not be able to get out and drown.
It is a natural way to get rid of them and may take weeks bit works.I wash all fruit coming into the house and I watch the air while shopping for plants. If you see one little fly running around, when you take a plant home from that place quarantine the plant, put it in a clear plastic bag with the solo cup method sitting in the bag also. Seal it. You can see the bugs going into the cup as days go by.
The moral to this story is to always wash fruit and watch new plants as not to reinfect. It's a pain but fun to see them get caught.