Index: /trunk/xpressme_integration_kit/wp-content/plugins/xpressme/include/notify_functions.php
===================================================================
--- /trunk/xpressme_integration_kit/wp-content/plugins/xpressme/include/notify_functions.php	(revision 346)
+++ /trunk/xpressme_integration_kit/wp-content/plugins/xpressme/include/notify_functions.php	(revision 347)
@@ -109,5 +109,5 @@
 		$sql2 .= "WHERE ($table_term_relationships.object_id =" . $comment_post_ID.") AND ($table_term_taxonomy.taxonomy='category')";		
 	}
-	$categories = $xoops_db->get_results($sql);
+	$categories = $xoops_db->get_results($sql2);
 	foreach($categories as $categorie){
 		$cat_id = $categorie->cat_ID;
@@ -164,5 +164,5 @@
 				$sql2 .= "WHERE ($table_term_relationships.object_id =" . $post_id.") AND ($table_term_taxonomy.taxonomy='category')";		
 			}
-			$categories = $xoops_db->get_results($sql);
+			$categories = $xoops_db->get_results($sql2);
 			foreach($categories as $categorie){
 				$cat_id = $categorie->cat_ID;
