Now the where function works pretty well for bug #7910.  I still need to convert everything that is using SQL syntax.