title: Issue with value being returned from PDO query
body: <p>I am experiencing an issue with the values being returned from my PDO statement.</p>
  
  <p>This is my code:</p>
  
  <pre><code>//Execute test
  $this-&gt;checkConnect();
  $stmt = $this-&gt;dbh-&gt;prepare("SELECT p_id FROM People WHERE lastName = :param1 AND firstName = :param2");
  $stmt-&gt;bindParam(':param1', $this-&gt;lName);
  $stmt-&gt;bindParam(':param2', $this-&gt;fName);
  $stmt-&gt;execute();
  $count = $stmt-&gt;rowCount();
  
  //Determine value of test
  if($count == FALSE)
  {
      return FALSE;
  }
  else
  {
      $dummyvar = $stmt-&gt;fetch();
      $this-&gt;p_id = implode($dummyvar);
  }
  </code></pre>
  
  <p>When I was going through my database records, I noticed that a certain value was off from what I had input. When I execute a query, it is supposed to grab the value of <code>p_id</code> from the table<code>People</code>. Simple enough. However, what happens is that the number is appended twice to itself. For instance, say <code>p_id</code> is equal to 1. <code>this-&gt;p_id</code> will be equal to 11. Or is <code>p_id</code> is equal to 2, the output will be 22. I've executed this query within MySQL and the value is correct. I'm not sure what is happening in my php code. Perhaps something to do with implode? I'm not sure.</p>
  
  <p>Any insight will be appreciated.</p>
  
  <p>Addition: I should also state that <code>p_id</code> is unique, thus only one value can be returned.</p>