title: pdo delete not working
body: <pre><code>&lt;?php
  $db = new PDO('mysql:host=localhost;dbname=wordpress', 'root','');
  //---------prepare
  $delete3 = $db-&gt;prepare("DELETE FROM wp_term_relationships WHERE object_id=:id");
  $delete2 = $db-&gt;prepare("DELETE FROM wp_posts WHERE ID=:id");
  $delete = $db-&gt;prepare("DELETE FROM wp_postmeta WHERE post_id=:id");;
  $select = $db-&gt;prepare("SELECT post_id FROM reference WHERE x_id=?");
  $delete-&gt;bindParam(':id', $id, PDO::PARAM_STR);
  $delete2-&gt;bindParam(':id', $id, PDO::PARAM_STR);
  $delete3-&gt;bindParam(':id', $id, PDO::PARAM_STR);
  //----------
  echo 'conected-----';
  {$delfeed = 'LOTS OF NUMBERS';}
  $array = explode(',',$delfeed);
  foreach($array as $deadman){
     $select-&gt;execute(array($deadman));
     $row = $select-&gt;Fetch(PDO::FETCH_ASSOC);
     $id = $row['post_id'];
        if ($id){
          echo "$id"."\n";
          $delete-&gt;execute();
          $delete2-&gt;execute();
          $delete3-&gt;execute();
  }}
  echo 'done!';
  ?&gt;
  </code></pre>
  
  <p>its a simple delete script but it doesnt delete, <strong>it does print the right $id's witch means is working till there</strong> but delete goes bananas,double checked table names ,colums... tryied working with question mark place holders insted of bind parameter but nothing
  UPDATE: its stuck on the first item of the array in the foreach</p>