=== modified file 'plugins/views_plugin_query_default.inc'
--- plugins/views_plugin_query_default.inc	2009-10-23 04:41:24 +0000
+++ plugins/views_plugin_query_default.inc	2009-10-26 19:58:13 +0000
@@ -850,7 +850,14 @@
     foreach ($this->$where as $group => $info) {
       $sub_group = $info['type'] == 'OR' ? db_or() : db_and();
       foreach ($info['conditions'] as $key => $clause) {
-        $sub_group->condition($clause['field'], $clause['value'], $clause['operator']);
+        // There is used NULL and empty because it is valid to use value = 0 and operator = NULL,
+        // which leads to field = 0 in sql.
+        if ($clause['value'] === NULL || empty($clause['operator'])) {
+          $sub_group->where($clause['field']);
+        }
+        else {
+          $sub_group->condition($clause['field'], $clause['value'], $clause['operator']);
+        }
       }
       $main_group->condition($sub_group);
     }

