title: My code returning incorrect values
body: <p>In my PHP code I run the following statement: </p>
  
  <pre><code>$stmt = $pdo-&gt;prepare("SELECT * FROM `tb_services` WHERE tb_services.user_id = :var1 AND
  (tb_services.user_id = :var1 OR tb_services.user_id = (SELECT subuser_owner_id FROM tb_users WHERE user_id = :var1))
  AND tc_services.sub_id = :var2");
  $stmt-&gt;bindParam(":var1", $_GET['var1']);
  $stmt-&gt;bindParam(":var2", $_GET['var2']);
  </code></pre>
  
  <p>However doing <code>$stmt-&gt;rowCount()</code> returns <code>0</code>, but when I run this exact statement(filled with the same values that I'm inputting instead of the <code>:var1, :var2</code>) it finds the row perfectly.</p>
  
  <p><code>while($info = $stmt-&gt;fetch(PDO::FETCH_ASSOC)) {</code></p>
  
  <p>The above is the code that is not running. As the return of the <code>rowCount()</code> is <code>0</code> and the while loop is not running, that just shows to me that it is for some reason not finding the row. If I input static values into the SQL statement, it works perfectly.</p>