Organic solutions are always hard to pull off because you have to be just as persistent as the insect you're fighting. You have to put a good amount of garlic (3 cloves per pot) and make sure to replace it when it gets dry.
If you do that, it totally works. The gnats just hate it. If you have...