simpler script, add boolean handling on DB_driver/escape
diff --git a/system/database/DB_query_builder.php b/system/database/DB_query_builder.php
index 969a25a..8fa67ea 100644
--- a/system/database/DB_query_builder.php
+++ b/system/database/DB_query_builder.php
@@ -432,27 +432,17 @@
 				$k .= ' IS NULL';
 			}
 
-			if ( is_bool($v))
-			{
-				if ($escape === TRUE)
-				{
-					$k = $this->protect_identifiers($k, FALSE, $escape);
-
-					$v = ' '.($v ? 'TRUE' : 'FALSE');
-				}
-
-				if ( ! $this->_has_operator($k))
-				{
-					$k .= ' =';
-				}
-			}
-			else if ( ! is_null($v))
+			if ( ! is_null($v))
 			{
 				if ($escape === TRUE)
 				{
 					$k = $this->protect_identifiers($k, FALSE, $escape);
 					$v = ' '.$this->escape($v);
 				}
+				else if (is_bool($v))
+				{
+					$v = ' '.($v ? 'TRUE' : 'FALSE');
+				}
 
 				if ( ! $this->_has_operator($k))
 				{