--- comment-relish.php.orig Mon Jun 18 07:33:24 2007 +++ comment-relish.php Mon Jun 18 09:36:06 2007 @@ -63,8 +63,9 @@ $sql = "CREATE TABLE ".$l_TableName." ( emailed_ID mediumint(9) NOT NULL AUTO_INCREMENT, time bigint(11) DEFAULT '0' NOT NULL, - email tinytext NOT NULL, - UNIQUE KEY emailed_ID (emailed_ID) + email varchar(255) NOT NULL, + UNIQUE KEY emailed_ID (emailed_ID), + INDEX ( email ) );"; require_once(ABSPATH . 'wp-admin/upgrade-functions.php'); @@ -209,9 +210,8 @@ global $wpdb, $l_TableName; // Find new commentors - $l_NewAuthor = $wpdb->get_results("SELECT c.*, p.* + $l_NewAuthor = $wpdb->get_results("SELECT c.* FROM $wpdb->comments c - INNER JOIN $wpdb->posts p ON p.ID = c.comment_post_ID LEFT JOIN $l_TableName e ON e.email = c.comment_author_email WHERE e.email IS NULL AND c.comment_approved = '1'");