Index: trunk/ippTools/src/detselect.c
===================================================================
--- trunk/ippTools/src/detselect.c	(revision 14358)
+++ trunk/ippTools/src/detselect.c	(revision 14369)
@@ -124,5 +124,5 @@
         }
     }
-    
+
     {
         bool status = false;
@@ -175,5 +175,5 @@
 
     if (config->where) {
-        psString whereClause = psDBGenerateWhereConditionSQL(config->where, "detRun");
+        psString whereClause = psDBGenerateWhereConditionSQL(config->where, NULL);
         psStringAppend(&query, " AND %s", whereClause);
         psFree(whereClause);
@@ -181,5 +181,5 @@
 
     {
-        psString whereClause = psDBGenerateWhereConditionSQL(where, "detRun");
+        psString whereClause = psDBGenerateWhereConditionSQL(where, NULL);
         psFree(where);
         if (whereClause) {
@@ -189,6 +189,6 @@
     }
 
-    // XXX this needs to be more controlled: we should specifically choose the 
-    // single detrend image which matches all criteria and has the latest 
+    // XXX this needs to be more controlled: we should specifically choose the
+    // single detrend image which matches all criteria and has the latest
     // insertion date
     psStringAppend(&query, " ORDER BY registered DESC LIMIT 1");
