title: Ajillion PHP-MySQLi-Database-Class Update command
body: <p>Using the MySQLi class made by Ajillion :: <a href="https://github.com/ajillion/PHP-MySQLi-Database-Class" rel="nofollow">https://github.com/ajillion/PHP-MySQLi-Database-Class</a></p>
  
  <p>I would like to execute the following command</p>
  
  <pre><code>$command = "UPDATE sessions SET active = 0 WHERE DATE_ADD(last, INTERVAL life MINUTE) &lt;= now()";
  </code></pre>
  
  <p>and I'm not sure how to do it with the class. Is there a way I can manage WHERE statements like this using that class, especially for UPDATE commands since normal queries I can $mysqli->rawQuery() the command.</p>
  
  <p>The problem with running rawQuery() on the command above is that I get a</p>
  
  <blockquote>
    <p>PHP Fatal error:  Call to a member function fetch_field() on a non-object</p>
  </blockquote>
  
  <p>since it is trying to gather the results that an UPDATE command doesn't give.</p>