See the thread and my response at Store Q()-filter terms in Database? - #2 by KenWhitesell
Specifically,