Index: includes/handlers.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/views/includes/handlers.inc,v
retrieving revision 1.96
diff -u -r1.96 handlers.inc
--- includes/handlers.inc	30 Sep 2008 23:59:04 -0000	1.96
+++ includes/handlers.inc	21 Oct 2008 13:52:49 -0000
@@ -663,6 +663,7 @@
         // If it's an and or an or, we do one join per selected value.
         // Clone the join for each table:
         $this->handler->table_aliases = array();
+        $index = 0;
         foreach ($this->handler->value as $value) {
           $join = $this->get_join();
           if ($this->handler->operator == 'and') {
@@ -675,12 +676,14 @@
               'numeric' => !empty($this->handler->definition['numeric']),
             ),
           );
-          $alias = $this->handler->table_aliases[$value] = $this->add_table($join, $this->handler->table . '_' . $value);
+          $alias = $this->handler->table . "_value_$index";
+          $alias = $this->handler->table_aliases[$value] = $this->add_table($join, $alias);
 
           // and set table_alias to the first of these.
           if (empty($this->handler->table_alias)) {
             $this->handler->table_alias = $alias;
           }
+          $index++;
         }
       }
       else {
