title: MySql General error: 2053
body: <p>I'm getting the error:</p>
  
  <blockquote>
    <p>ERROR: SQLSTATE[HY000]: General error: 2053</p>
  </blockquote>
  
  <p>I have no idea why this is happening because the code works fine and the database is updated, but it still returns this error.</p>
  
  <p>Here's my code:</p>
  
  <pre><code>&lt;?php
  
  header("Content-Type: application/json; charset=UTF-8");
  require 'UHCauth.php';
  try {
  $conn = new PDO("mysql:host=$mysql_serv;dbname=$mysql_db", $mysql_user, $mysql_pass);
  $conn-&gt;setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
  $conn-&gt;setAttribute(PDO::ATTR_EMULATE_PREPARES, false);
  
  if(isset($_GET['d6518e47'])) {
      $USERNAME = $_GET['d6518e47'];
      $stmt = $conn-&gt;prepare(
          "UPDATE $mysql_table
          SET KILLS = KILLS+1 WHERE USERNAME = :USERNAME"
      );
      $stmt-&gt;execute(array('USERNAME' =&gt; $USERNAME));
  
      $row = $stmt-&gt;fetch(PDO::FETCH_ASSOC);
  
      echo json_encode($row);
  } else {
  
      $stmt = $conn-&gt;prepare(
          "SELECT * FROM $mysql_table
          ORDER BY
              McVersion DESC,
              ModVersion DESC
          LIMIT 1"
      );
      $stmt-&gt;execute();
  
      $row = $stmt-&gt;fetch(PDO::FETCH_ASSOC);
  
      echo json_encode($row);
  }
  } catch(PDOException $e) {
      echo 'ERROR: ' . $e-&gt;getMessage();
  }
  ?&gt;
  </code></pre>