Index: trunk/ippTools/src/difftool.c
===================================================================
--- trunk/ippTools/src/difftool.c	(revision 27207)
+++ trunk/ippTools/src/difftool.c	(revision 27210)
@@ -730,5 +730,5 @@
         PXOPT_COPY_TIME(config->args, where, "-dateobs_begin", "rawInput.dateobs",  ">=");
         PXOPT_COPY_TIME(config->args, where, "-dateobs_end",   "rawInput.dateobs",  "<=");
-        PXOPT_COPY_STR(config->args, where, "-filter",     "rawInput.filter", "==");
+        PXOPT_COPY_STR(config->args, where, "-filter",     "rawInput.filter", "LIKE");
     } else {
         PXOPT_COPY_S64(config->args, where, "-exp_id", "rawTemplate.exp_id", "==");
@@ -737,5 +737,5 @@
         PXOPT_COPY_TIME(config->args, where, "-dateobs_begin", "rawTemplate.dateobs",  ">=");
         PXOPT_COPY_TIME(config->args, where, "-dateobs_end",   "rawTemplate.dateobs",  "<=");
-        PXOPT_COPY_STR(config->args, where, "-filter",     "rawTemplate.filter", "==");
+        PXOPT_COPY_STR(config->args, where, "-filter",     "rawTemplate.filter", "LIKE");
     }
 
Index: trunk/ippTools/src/faketool.c
===================================================================
--- trunk/ippTools/src/faketool.c	(revision 27207)
+++ trunk/ippTools/src/faketool.c	(revision 27210)
@@ -558,6 +558,6 @@
     PXOPT_COPY_S64(config->args, where, "-exp_id", "rawExp.exp_id", "==");
     PXOPT_COPY_STR(config->args, where, "-class_id", "rawImfile.class_id", "==");
-    PXOPT_COPY_STR(config->args, where, "-inst", "rawExp.telescope", "==");
-    PXOPT_COPY_STR(config->args, where, "-filter", "rawExp.filter", "==");
+    PXOPT_COPY_STR(config->args, where, "-inst", "rawExp.camera", "==");
+    PXOPT_COPY_STR(config->args, where, "-filter", "rawExp.filter", "LIKE");
 
     psString query = pxDataGet("faketool_processedimfile.sql");
@@ -568,5 +568,5 @@
 
     if (where && psListLength(where->list)) {
-        psString whereClause = psDBGenerateWhereConditionSQL(where, "fakeProcessedImfile");
+        psString whereClause = psDBGenerateWhereConditionSQL(where, NULL);
         psStringAppend(&query, " AND %s", whereClause);
         psFree(whereClause);
Index: trunk/ippTools/src/pxcam.c
===================================================================
--- trunk/ippTools/src/pxcam.c	(revision 27207)
+++ trunk/ippTools/src/pxcam.c	(revision 27210)
@@ -87,5 +87,5 @@
     PXOPT_COPY_STR(config->args,   where, "-comment",            "rawExp.comment",       "LIKE");
     PXOPT_COPY_STR(config->args,   where, "-filelevel",          "rawExp.filelevel",     "==");
-    PXOPT_COPY_STR(config->args,   where, "-filter",             "rawExp.filter",         "==");
+    PXOPT_COPY_STR(config->args,   where, "-filter",             "rawExp.filter",         "LIKE");
     PXOPT_COPY_F64(config->args,   where, "-airmass_min",        "rawExp.airmass",        ">=");
     PXOPT_COPY_F64(config->args,   where, "-airmass_max",        "rawExp.airmass",        "<");
Index: trunk/ippTools/src/pxchip.c
===================================================================
--- trunk/ippTools/src/pxchip.c	(revision 27207)
+++ trunk/ippTools/src/pxchip.c	(revision 27210)
@@ -96,5 +96,5 @@
     PXOPT_COPY_STR(config->args, where, "-exp_type", "rawExp.exp_type", "==");
     PXOPT_COPY_STR(config->args, where, "-filelevel", "rawExp.filelevel", "==");
-    PXOPT_COPY_STR(config->args, where, "-filter", "rawExp.filter", "==");
+    PXOPT_COPY_STR(config->args, where, "-filter", "rawExp.filter", "LIKE");
     PXOPT_COPY_F64(config->args, where, "-airmass_min", "rawExp.airmass", ">=");
     PXOPT_COPY_F64(config->args, where, "-airmass_max", "rawExp.airmass", "<");
Index: trunk/ippTools/src/regtool.c
===================================================================
--- trunk/ippTools/src/regtool.c	(revision 27207)
+++ trunk/ippTools/src/regtool.c	(revision 27210)
@@ -343,5 +343,5 @@
     PXOPT_COPY_TIME(config->args, where, "-dateobs_begin", "dateobs",  ">=");
     PXOPT_COPY_TIME(config->args, where, "-dateobs_end",   "dateobs",  "<=");
-    PXOPT_COPY_STR(config->args, where,  "-filter",        "filter", "==");
+    PXOPT_COPY_STR(config->args, where,  "-filter",        "filter", "LIKE");
     PXOPT_COPY_STR(config->args, where,  "-exp_type",      "exp_type", "==");
     PXOPT_COPY_STR(config->args, where,  "-obs_mode",      "obs_mode", "==");
@@ -1048,5 +1048,5 @@
     PXOPT_COPY_STR(config->args,   where,  "-filelevel", "filelevel", "==");
     PXOPT_COPY_STR(config->args,   where,  "-reduction", "reduction", "==");
-    PXOPT_COPY_STR(config->args,   where,  "-filter", "filter", "==");
+    PXOPT_COPY_STR(config->args,   where,  "-filter", "filter", "LIKE");
     PXOPT_COPY_F32(config->args,   where,  "-airmass_min", "airmass", ">=");
     PXOPT_COPY_F32(config->args,   where,  "-airmass_max", "airmass", "<");
