title: Error: number of bound variables does not match number of tokens
body: <p>I want to make an insert only if there's no correspondence in the db (mySQL) but he makes me not the statement. Here's the snippet</p>
  
  <pre><code>    if ($sql-&gt;rowCount() &gt; 0) {
          echo 'Non inserisci';
      } else {
          echo 'Inserisci';
          $db-&gt;beginTransaction();
          echo 'Ciao3';
          $sql = $db-&gt;prepare("INSERT INTO contatti (nome,cognome) VALUES (?,?)") or die('Ciao2');
          echo 'Ciao4';
          $sql-&gt;execute(array($_POST['nome'],$_POST['cognome']));
          echo 'Ciao5';
          $db-&gt;rollBack();
      }
  </code></pre>
  
  <p>Where The SELECT is</p>
  
  <pre><code>    $db-&gt;beginTransaction();
      $sql = $db-&gt;prepare("SELECT * FROM contatti WHERE nome = ? AND cognome = ? WHERE nome = ? AND cognome = ?") or die ('Ciao1');
      $sql-&gt;execute(array($_POST['nome'],$_POST['cognome']));
      $db-&gt;rollBack();
  </code></pre>
  
  <p>Can you explain me where's the fault?</p>