Really? That one has been one of the most reliable ways to trap fruit flies and gnats.
Sorry for grossness but here's one I made just a couple days ago with white vinegar instead of apple cider vinegar:
The problem was super severe in the old apartment, this is just from one fly that came in...