Index: /trunk/psLib/src/db/psDB.c
===================================================================
--- /trunk/psLib/src/db/psDB.c	(revision 7496)
+++ /trunk/psLib/src/db/psDB.c	(revision 7497)
@@ -12,6 +12,6 @@
  *  @author Joshua Hoblitt
  *
- *  @version $Revision: 1.57 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2006-06-07 21:53:56 $
+ *  @version $Revision: 1.58 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2006-06-10 04:04:18 $
  *
  *  Copyright 2005 Joshua Hoblitt, University of Hawaii
@@ -1447,9 +1447,9 @@
             psStringAppend(&query, "%s", conditional);
             psFree(conditional);
-
-            // + " and " after every column declaration except the last one
-            if (!cursor->offEnd) {
-                psStringAppend(&query, " AND ");
-            }
+        }
+
+        // + " and " after every column declaration except the last one
+        if (!cursor->offEnd) {
+            psStringAppend(&query, " AND ");
         }
     }
