title: Ignored records rows in PHP to MSSQL connection
body: <p>I have a problem with a different result, when asking mssql for data with this query. Executed directly on server it gives me 3 results, but in connection from PHP server it gives me just one row = 041SE010-0240
  propabli is problem with enconding but I dont know how to solve that I tried change encoding for connection from PHP server. I have tries CP1250, CP1251 encoding on server is CP1250 and collate Czech_CI_AS.</p>
  
  <pre><code>SELECT S.IDS, S.RefStruct, ISNULL(S.StavZ - S.ObjedP, 0) AS quantity
              FROM SKz S
              WHERE S.IDS IN ('092COž01', '00XXž004', '041SE010-0240')  AND RefStruct IN (2, 3)
  </code></pre>
  
  <p>My code:</p>
  
  <pre><code>$where = '';
      if (!empty($this-&gt;allowedWarhouses)) {
          $where = ' AND RefStruct IN (' . implode(', ', $this-&gt;allowedWarhouses) . ')';
      }
  
  $resource = $this-&gt;pohodaDatabase-&gt;query(
      "SELECT S.IDS, S.RefStruct, ISNULL(S.StavZ - S.ObjedP, 0) AS quantity
      FROM SKz S
      WHERE S.IDS IN ('092COž01', '00XXž004', '041SE010-0240')" . $where
  );
  $productStocksDataWrapper = array();
  var_dump($this-&gt;pohodaDatabase-&gt;rows($resource));  // int(0)
  var_dump($this-&gt;pohodaDatabase-&gt;getLastQuery()); //SELECT S.IDS,S.RefStruct,ISNULL(S.StavZ - S.ObjedP, 0) AS quantity FROM SKz S WHERE S.IDS IN ('092COž01', '00XXž004', '041SE010-0240') //
  while ($row = $this-&gt;pohodaDatabase-&gt;fetch_assoc($resource)) {
      var_dump($row); // only 041SE010-0240
      $productStocksData = new PohodaProductStocksData();
      $productStocksData
          -&gt;setCatnum($row['IDS'])
          -&gt;setPohodaWarhouseExtId($row['RefStruct'])
          -&gt;setQuantity($row['quantity']);
      $productStocksDataWrapper[] = $productStocksData;
  }
  var_dump($productStocksDataWrapper); // just 041SE010-0240
  die();
  </code></pre>