Index: trunk/ippTools/src/regtool.c
===================================================================
--- trunk/ippTools/src/regtool.c	(revision 15776)
+++ trunk/ippTools/src/regtool.c	(revision 15778)
@@ -855,5 +855,5 @@
         }
         if (exp_id) {
-            if (!psMetadataAddStr(where, PS_LIST_TAIL, "T1.exp_id", 0, "==", exp_id)) {
+            if (!psMetadataAddStr(where, PS_LIST_TAIL, "exp_id", 0, "==", exp_id)) {
                 psError(PS_ERR_UNKNOWN, false, "failed to add item exp_id");
                 psFree(where);
@@ -864,8 +864,8 @@
 
 
-        psString whereClause = psDBGenerateWhereConditionSQL(where, NULL);
+        psString whereClause = psDBGenerateWhereSQL(where, NULL);
         psFree(where);
         if (whereClause) {
-	    psStringAppend(&query, " AND %s", whereClause);
+	    psStringAppend(&query, " %s", whereClause);
 	    psFree(whereClause);
         }
