Index: wp-admin/admin-header.php
===================================================================
RCS file: /cvsroot/cafelog/wordpress/wp-admin/admin-header.php,v
retrieving revision 1.24
diff -u -r1.24 admin-header.php
--- wp-admin/admin-header.php	11 Jun 2004 18:23:11 -0000	1.24
+++ wp-admin/admin-header.php	13 Jun 2004 05:03:28 -0000
@@ -14,7 +14,7 @@
 if (!isset($debug))        $debug=0;
 timer_start();
 
-$dogs = $wpdb->get_results("SELECT * FROM $wpdb->categories WHERE 1=1");
+$dogs = $wpdb->get_results("SELECT * FROM $wpdb->categories");
 foreach ($dogs as $catt) {
     $cache_categories[$catt->cat_ID] = $catt;
 }
@@ -140,4 +140,4 @@
 <?php
 require('./menu.php');
 endif;
-?>
\ No newline at end of file
+?>
Index: wp-admin/import-greymatter.php
===================================================================
RCS file: /cvsroot/cafelog/wordpress/wp-admin/import-greymatter.php,v
retrieving revision 1.15
diff -u -r1.15 import-greymatter.php
--- wp-admin/import-greymatter.php	11 Jun 2004 18:23:12 -0000	1.15
+++ wp-admin/import-greymatter.php	13 Jun 2004 05:03:36 -0000
@@ -193,7 +193,7 @@
 			if (!$result)
 				die ("Error in posting...");
 			
-			$sql2 = "SELECT * FROM $wpdb->posts WHERE 1=1 ORDER BY ID DESC LIMIT 1";
+			$sql2 = "SELECT * FROM $wpdb->posts ORDER BY ID DESC LIMIT 1";
 			$result2 = mysql_query($sql2);
 			$myrow2 = mysql_fetch_array($result2);
 			$post_ID=$myrow2[0];
@@ -338,4 +338,4 @@
 
 }
 
-?>
\ No newline at end of file
+?>
Index: wp-includes/functions.php
===================================================================
RCS file: /cvsroot/cafelog/wordpress/wp-includes/functions.php,v
retrieving revision 1.119
diff -u -r1.119 functions.php
--- wp-includes/functions.php	11 Jun 2004 19:03:59 -0000	1.119
+++ wp-includes/functions.php	13 Jun 2004 05:03:52 -0000
@@ -1772,7 +1772,7 @@
 
 function update_category_cache() {
     global $cache_categories, $wpdb;
-    $dogs = $wpdb->get_results("SELECT * FROM $wpdb->categories WHERE 1=1");
+    $dogs = $wpdb->get_results("SELECT * FROM $wpdb->categories");
     foreach ($dogs as $catt) {
         $cache_categories[$catt->cat_ID] = $catt;
     }
@@ -1795,4 +1795,4 @@
 	do_action('wp_head', '');
 }
 
-?>
\ No newline at end of file
+?>
