title: PHP PDO Insert problem
body: <p>I've hit a wall with a PDO insert:</p>
  
  <pre><code>$q = $dbh-&gt;prepare('INSERT INTO grant (grant_name, update) VALUES (?,?)');
  $q-&gt;bindParam(1, $grant_name, PDO::PARAM_STR);
  $q-&gt;bindParam(2, $update, PDO::PARAM_STR);
  $q-&gt;execute();
  </code></pre>
  
  <p>I get an error:</p>
  
  <pre><code> PHP Warning:  PDOStatement::execute(): SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; 
  </code></pre>
  
  <p>But I cannot find the problem. I have tried using placeholder (such as :grant_name) and using the question marks (?). </p>