Interesting to see what has worked for everyone. Last winter I had used an organic fertilizer on tomato plants and small citrus trees when they were in the greenhouse.
When the fertilizer was watered in, the gnats germinated. I was horrified at how many there were. I used yellow sticky cards and snagged tons. Seemed they were drawn to yellow.
I've since read that you can use a bit of soapy water in a yellow bowl or yellow pan and they will commit suicide by drowning.
I won't use that fertilizer indoors again!