title: Alter MySQL table with PDO and prepared statement
body: <p>I've used PDO in my project with PHP and MySQL. Everything is working fine, but I have an error on executing the code below:</p>
  
  <pre><code>$sql = "ALTER TABLE tbl_invoices AUTO_INCREMENT = ?";
  $q = $db-&gt;prepare($sql);
  $q-&gt;execute(array($invoice_start));  
  </code></pre>
  
  <p>I want to alter a table with PDO prepared statement. But I'm getting this error:  </p>
  
  <blockquote>
    <p>Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '?' at line ...  </p>
  </blockquote>
  
  <p>I tested different solutions, but none of them could not solve it. Do you have any idea?</p>