title: MySQL INSERT query error when values are numbers
body: <p>I am using this code to insert into a database, however for some reason it is giving me an error now. Is there a something that needs to be done when it is numbers?</p>
  
  <blockquote>
    <p>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 'replace, pick) VALUES ('8', '1', '6', '1')' at line 1</p>
  </blockquote>
  
  <pre><code>$sql = "INSERT INTO TRIPLECROWNscratch (user_id, original, replace, pick) VALUES (:user_id, :original, :replace, :pick)";
          $stmt = $dbh-&gt;prepare($sql);
          $stmt-&gt;bindValue(':user_id', $_POST['user_id'], PDO::PARAM_INT);
          $stmt-&gt;bindValue(':original', $_POST['original'], PDO::PARAM_INT);
          $stmt-&gt;bindValue(':replace', $replace, PDO::PARAM_INT);
          $stmt-&gt;bindValue(':pick', $_POST['pick'], PDO::PARAM_INT);
          $stmt-&gt;execute();
  </code></pre>