function db_error() { trigger_error(__FUNCTION__ . " has been deprecated in v3.2 and will be removed in v5.0. Please use w2p_Database_Connection->db_error instead.", E_USER_NOTICE); global $db; $connection = new w2p_Database_Connection($db); return $connection->error(); }