title: MySQL syntax error - near '1' at line 1
body: <p>When running my PHP script It keeps giving me the error </p>
  
  <p><code>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 '1' at line 1</code></p>
  
  <p>This is my sql code I have other than selecting from the table. I have commented out all of this and not gotten an error, so I'm assuming its occuring in this block of code.</p>
  
  <pre><code>    if($status === 1){
          $sqlQ = mysql_query("UPDATE tablename SET status=1 WHERE steam64='$id'");
  
          if(!mysql_query($sqlQ, $con)){
              die('Error: ' . mysql_error());
          }
      }else if($status !== 1){
          $sqlQ = mysql_query("UPDATE tablename SET status=2 WHERE steam64='$id'");
  
          if(!mysql_query($sqlQ, $con)){
              die('Error: ' . mysql_error());
          }
      }
  </code></pre>
  
  <p>What is really confusing me is the line 1 part.</p>