title: PDO WHERE clause not working with OR
body: <p>I'm using this and it works fine.</p>
  
  <pre><code>$stmt1 = $conn-&gt;prepare("SELECT * FROM Authors WHERE First=:id");
  $stmt1-&gt;bindParam(':id', $_GET['name'], PDO::PARAM_STR);
  blah blah...
  </code></pre>
  
  <p>It also works when I change WHERE 'First=:id' to 'Last=:id' but it fails when I include an OR clause as below.</p>
  
  <pre><code>$stmt1 = $conn-&gt;prepare("SELECT * FROM Authors WHERE First=:id OR Last=:id");
  $stmt1-&gt;bindParam(':id', $_GET['name'], PDO::PARAM_STR); 
  </code></pre>
  
  <p>I found this below in Stack #3030650.</p>
  
  <pre><code>$stmt = $dbh-&gt;prepare("SELECT * FROM REGISTRY WHERE firstname = :name OR lastname = :name");
  $stmt-&gt;bindParam(':name', $name);; 
  </code></pre>
  
  <p>Since these appear the same, what am I overlooking.</p>
  
  <p>Thanks for any advice.</p>