title: Particular Query not running in PHP(using PDO)
body: <p>The below php code runs a query for which i get <code>$res = true</code> which means that the query should have run.<br>
  I checked the health of the PDO object also to make sure and found out that other queries get run correctly.<br>
  Also no exception were caught. Have run out of ways to solve this issue.</p>
  
  <pre><code>function insertPaypalSavedSanity($udi, $isPaypalSaved){
      global $DBH;
      try {
          $sql = "INSERT INTO sanity(user_id, saved_paypal_used_previously) VALUES(:user_id,:sv) ON DUPLICATE KEY UPDATE saved_paypal_used_previously=:sv";
          $sqlcon = $DBH-&gt;prepare($sql);
          $res = $sqlcon-&gt;execute(array(
              'user_id'=&gt;$_SESSION['userID'],
              'sv'=&gt;$isPaypalSaved));//$res is true after executing the query
          $x = 1;// I put the debugger at this point and run other queries with my PDO object($DBH)
      } catch(Exception $e)
      {
          logger ("sanity queries",$e-&gt;getMessage());
      }
  }
  </code></pre>