title: PDO error uncaught exception SQLSTATE[HY000]
body: <p>I keep getting this error but i don't know why....</p>
  
  <p>The error is:</p>
  
  <pre><code>Uncaught exception 'PDOException' with message 'SQLSTATE[HY000]:
  
  General error' in test.php:25\nStack trace:\n#0 test.php(25): 
  
  PDOStatement-&gt;fetch()\n#1 {main}\n  thrown in test.php on line 25
  </code></pre>
  
  <p>My query is like this:</p>
  
  <pre><code>$stmt = $pdo-&gt;prepare("
  
  SELECT *,t1.id AS theID FROM users
     t1 LEFT JOIN users_settings t2
  ON t1.id=t2.tid                 
     INNER JOIN extra_settings t3
  ON t2.bid=t3.id");
  
  try {
      $stmt-&gt;execute();
  } catch (PDOException $e) {
      echo $e -&gt; getMessage();  
  }
  
  while($row = $stmt-&gt;fetch()){ //error is here
      //do stuff
  }
  </code></pre>
  
  <p>The script works but the error displays anyway =/</p>
  
  <p>What does the error mean and how do i fix it ?</p>