I have had good success getting rid of gnats near food by placing a jar with an inch or two of apple cider vinegar near the food source.
It also works keeping the "little no see ems" away from reading lights during the summer when the windows are open.
Add your voice to the conversation. Click here to answer this question.