title: mysqli::query(): Couldn't fetch mysqli
body: <blockquote>
    <p>Warning: mysqli::query(): Couldn't fetch mysqli in C:\Program Files (x86)\EasyPHP-DevServer-13.1VC9\data\localweb\my portable files\class_EventCalendar.php on line 43</p>
  </blockquote>
  
  <p>The following is my connection file:</p>
  
  <pre><code>&lt;?php
  if(!isset($_SESSION)) 
  { 
      session_start(); 
  }  
  
  // Create array to hold error messages (if any)
  $ErrorMsgs = array();
  
  // Create new mysql connection object
  $DBConnect = @new mysqli("localhost","root@localhost", 
              NULL,"Ladle");
  
  // Check to see if connection errno data member is not 0 (indicating an error)
  if ($DBConnect-&gt;connect_errno) {
  
      // Add error to errors array
      $ErrorMsgs[]="The database server is not available.".
                 " Connect Error is ".$DBConnect-&gt;connect_errno." ".
                 $DBConnect-&gt;connect_error.".";
  }
  ?&gt;
  </code></pre>
  
  <p>This is my class:</p>
  
  <pre><code> &lt;?php 
      class EventCalendar {
          private $DBConnect = NULL;
  
          function __construct() {
              // Include the database connection data
              include("inc_LadleDB.php");
              $this-&gt;DBConnect = $DBConnect;  
          }
  
          function __destruct() {
              if (!$this-&gt;DBConnect-&gt;connect_error) {
                  $this-&gt;DBConnect-&gt;close();
              }
          }
  
          function __wakeup() {
              // Include the database connection data
              include("inc_LadleDB.php");     
              $this-&gt;DBConnect = $DBConnect;
          }
  
  
          // Function to add events to Zodiac calendar
          public function addEvent($Date, $Title, $Description) {
              // Check to see if the required fields of Date and Title have been entered
              if ((!empty($Date)) &amp;&amp; (!empty($Title))) {
                  /* if all fields are complete then they are 
                     inserted into the Zodiac event_calendar table */
                  $SQLString = "INSERT INTO tblSignUps".
                             " (EventDate, Title, Description) ".
                             " VALUES('$Date', '$Title', '".
                              $Description."')";
  
                  // Store query results in a variable
                  $QueryResult = $this-&gt;DBConnect-&gt;query($SQLString);
  </code></pre>
  
  <p>I'm not great with OOP PHP and I'm not sure why this error is being raised. I pulled this code from elsewhere and the only thing I changed was the <code>@new mysqli</code> parameters. Can anyone help me to understand what is going wrong?</p>