title: MySQL - "Unexpected input field parameter in database query."
body: <p>Here's the code:</p>
  
  <pre><code>&lt;?php
  
  function widget_hello_world($vars) {
  
  $username = "database_user";
  $password = "database_password";
  $hostname = "localhost"; 
  
  //connection to the database
  $dbhandle = mysql_connect($hostname, $username, $password)
   or die("Unable to connect to MySQL");
  echo "Connected to MySQL&lt;br&gt;";
  
  //select a database to work with
  $selected = mysql_select_db("database_name",$dbhandle)
    or die("Could not select database!");
  
  $test1 = mysql_query("select COUNT(*) FROM Table WHERE `Status`='new'");
  
  mysql_close($dbhandle);
  
      $content = '&lt;table class="table"&gt;
  &lt;thead&gt;&lt;tr&gt;&lt;th style="text-align:left;"&gt;Title&lt;/th&gt;&lt;th style="text-align:left;"&gt;Data&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;
  &lt;tbody&gt;
  
  &lt;tr&gt;&lt;td&gt;Test Data 1&lt;/td&gt;&lt;td&gt;{$test1}&lt;/td&gt;&lt;/tr&gt;
  &lt;tr&gt;&lt;td&gt;Test Data 2&lt;/td&gt;&lt;td&gt;{$test2}&lt;/td&gt;&lt;/tr&gt;
  &lt;tr&gt;&lt;td&gt;Test Data 3&lt;/td&gt;&lt;td&gt;{$test3}&lt;/td&gt;&lt;/tr&gt;
  &lt;/tbody&gt;
  &lt;/table&gt;';
  
      return array( 'title' =&gt; 'Hellow World', 'content' =&gt; $content );
  
  }
  
  add_hook("AdminHomeWidgets",1,"widget_hello_world");
  
  ?&gt;
  </code></pre>
  
  <p>This is the error message I'm getting when I go to the page:</p>
  
  <pre><code>Connected to MySQL
  Unexpected input field parameter in database query.
  </code></pre>
  
  <p>Obviously it's connecting to the database, but it says there's an issue with the query.</p>
  
  <p>At first I thought the issue was with this line:</p>
  
  <pre><code>$test1 = mysql_query("select COUNT(*) FROM Emails WHERE `Status`='new'");
  </code></pre>
  
  <p>However, even when I delete that line, the same error keeps on happening.  What am I doing wrong?</p>