I've made a lot of fruit flies traps over the years for that darn fruit fly lab. The one that seemed to work the best was to put about an inch of apple cider vinegar in a mug or glass. Then, top the whole thing with a funnel (make sure there is air space between the funnel and the vinegar). This prevents the little pests from escaping the trap. Eventually, they will drown.