title: WordPress is giving 500 error
body: <p>I am trying to update a table in WordPress that I created myself through a plug-in that I created. However I keep getting this error: </p>
  
  <pre><code>The website encountered an error while retrieving /add-van-process.php. 
  It may be down for maintenance or configured incorrectly.
  Error code: 500
  </code></pre>
  
  <p>This is the PHP that I am using:</p>
  
  <pre><code>&lt;?php 
      global $wpdb;
      $data = array("model"=&gt;"Ford")
      $wpdb-&gt;insert("van_table", $data); 
  ?&gt;
  </code></pre>
  
  <p>The file name and table name are correct and exist. Anyone got any ideas how to fix this? </p>
  
  <p>much appreciated</p>
  
  <p>edit: I am using WordPress Version Version 3.5.2 if that is needed. </p>
  
  <p>edit: after changing this code to: </p>
  
  <pre><code>$wpdb-&gt;get_row("SELECT * FROM van_table");
  </code></pre>
  
  <p>I get this error: 
      PHP Fatal error:  Call to a member function get_results() on a non-object</p>
  
  <p>Any clues?</p>