Index: /trunk/xpressme_integration_kit/include/general_functions.php
===================================================================
--- /trunk/xpressme_integration_kit/include/general_functions.php	(revision 484)
+++ /trunk/xpressme_integration_kit/include/general_functions.php	(revision 485)
@@ -126,4 +126,6 @@
 		$table_list = array();
 		$ret = array();
+		$pattern = $wp_prefix . $table_name . '|' . $wp_prefix . '[0-9]*_' . $table_name;
+
 		if (!empty($wp_prefix) && !empty($table_name)){
 			$sql = "SHOW TABLES LIKE '" . $wp_prefix  . '%' . $table_name . "'";
@@ -132,5 +134,7 @@
 				if($result = $xoopsDB->queryF($sql)){
 					while($row = $xoopsDB->fetchRow($result)){
-						$table_list[] = $row[0];
+						if(preg_match('/' . $pattern . '/' , $row[0])){
+							$table_list[] = $row[0];
+						}
 					}
 				}
@@ -138,5 +142,7 @@
 				$rows = $xoops_db->get_results($sql, ARRAY_N);
 				foreach ($rows as $row){
-					$table_list[] = $row[0];
+					if(preg_match('/' . $pattern . '/' , $row[0])){
+						$table_list[] = $row[0];
+					}
 				}
 			}			
