title: Syntax error of SQL-statement
body: <p>I try to get all rows which has a timestamp bigger then a value given in a variable or "0".</p>
  
  <pre><code>$pdo = $db-&gt;prepare('SELECT * FROM table ORDER BY id DESC, parent, cat WHERE timest &gt;= :low OR timest = 0');
  $pdo-&gt;bindParam(':low', $low, PDO::PARAM_INT);
  $pdo-&gt;execute();
  </code></pre>
  
  <p>What is wrong with that?</p>
  
  <p>I get a SQLState error 42000 (syntax error), but I don't understand why.</p>