Index: pathauto_node.inc
===================================================================
--- pathauto_node.inc	(revision 19447)
+++ pathauto_node.inc	(working copy)
@@ -67,7 +67,9 @@
       }
     }
   }
-  $type_where .= ')';
+  if ($type_where !== '') {
+    $type_where .= ')'; 
+  }
 
   $query = "SELECT nid, type, title, uid, created, src, dst, vid FROM {node} LEFT JOIN {url_alias} ON CONCAT('node/', CAST(nid AS CHAR)) = src WHERE src IS NULL ". $type_where;
   $result = db_query_range($query, $pattern_types, 0, variable_get('pathauto_max_bulk_update', 50));
