Index: /trunk/xpressme_integration_kit/include/general_functions.php
===================================================================
--- /trunk/xpressme_integration_kit/include/general_functions.php	(revision 525)
+++ /trunk/xpressme_integration_kit/include/general_functions.php	(revision 526)
@@ -126,5 +126,6 @@
 		$table_list = array();
 		$ret = array();
-		$pattern = $wp_prefix . $table_name . '|' . $wp_prefix . '[0-9]*_' . $table_name;
+		$wp_prefix = preg_replace('/_$/', '',$wp_prefix);
+		$pattern = $wp_prefix . '_' . $table_name . '|' . $wp_prefix . '_[0-9]*_' . $table_name;
 
 		if (!empty($wp_prefix) && !empty($table_name)){
