title: odbc query returns the first row twice then returns the rest normally
body: <p>I am querying a database with an odbc connection through php. When I query the db it returns the first row twice and then the rest of the rows the correct amount of times.</p>
  
  <p>Example query:</p>
  
  <pre><code>$stm = SELECT[sUsername] FROM [dbo].[Abilis].[Users] WHERE sUsername = ?;
  $pstm = odbc_prepare($conn, $stm);
  $exc = odbc_execute($query, array($Username));
  </code></pre>
  
  <p>I have also tried using DISTINCT but that has not worked either.</p>
  
  <p>EDIT:</p>
  
  <pre><code>for($i=0; $i&lt;odbc_num_rows($pstm);$i++){
  
              $row = odbc_fetch_array($pstm, $i);
              if($row['OnCreditHold'] == '1'){
                $out = '&lt;button style="color:red;margin:0 auto;" class="btn" onclick="'.'window.location.href='."'information.php?info=".$row['Account_no'];
                $out .= "'".'"&gt;'.$row['Name'].'&lt;/br&gt;';
                $out .= $row['Del_ad1'].'&lt;/button&gt;';
              }
              else{
                $out = '&lt;button class="btn" style="margin: 0 auto;" onclick="'.'window.location.href='."'information.php?info=".$row['Account_no'];
                $out .= "'".'"&gt;'.$row['Name'].'&lt;/br&gt;';
                $out .= $row['Del_ad1'].'&lt;/button&gt;';
  
              }
              echo $out;
            }
  </code></pre>