diff --git a/table.php b/table.php index c46e593..b6fc1c2 100644 --- a/table.php +++ b/table.php @@ -341,10 +341,8 @@ public function exists() { } // Query statement - $query = "SHOW TABLES LIKE %s"; - $like = $db->esc_like( $this->table_name ); - $prepared = $db->prepare( $query, $like ); - $result = $db->get_var( $prepared ); + $query = "SHOW CREATE TABLE {$this->table_name}"; + $result = $db->query( $query ); // Does the table exist? return $this->is_success( $result );