Index: trunk/ippTools/src/dettool.c
===================================================================
--- trunk/ippTools/src/dettool.c	(revision 9443)
+++ trunk/ippTools/src/dettool.c	(revision 9448)
@@ -2718,5 +2718,5 @@
 	    psMetadataAddS32 (config->where, PS_LIST_TAIL, "detNormalizedImfile.iteration", 0, "==", iteration);
 	}
-        psString whereClause = psDBGenerateWhereConditionSQL(config->where, NULL);
+        psString whereClause = psDBGenerateWhereConditionSQL(config->where, "detNormalizedImfile");
         psStringAppend(&query, " AND %s", whereClause);
         psFree(whereClause);
