title: MySQLi Query returns empty
body: <p>I'm trying to lookup values in a mysql database using keys I get from a JSON file.
  Currently, this is the code:</p>
  
  <pre><code>&lt;?php
  
  $db = mysqli_connect('localhost', 'root', '', 'colorred');
  if (mysqli_connect_errno()) {
       die(mysqli_connect_error());
  }
  
  $data = file_get_contents('http://paulglushak.com/json/test.json');
  $parse = json_decode($data,true);
  $time = date('l, d-M-Y H:i:s T', $parse['id']/1000);
  $title = $parse['title'];
  
  echo '&lt;br&gt;&lt;br&gt;',$time,'&lt;br&gt;';
  echo $title,'&lt;br&gt;';
  if(!($parse['data']==null)) {
      foreach ($parse['data'] as $code) {
          $query = "SELECT `city` FROM `city_table` WHERE (CONVERT(`code` USING utf8) LIKE '".$code."')";
          echo 'The Query: ' .$query.'&lt;br&gt;';
          $result = mysqli_query($db, $query) or die('Error: '.mysqli_error($db));
          echo '&lt;hr&gt;';
          while($row = mysqli_fetch_assoc($result)) {
              echo $row;
              }
          }
      mysqli_close($db);
  }
  
  
  ?&gt;
  </code></pre>
  
  <p>One of the queries for example is:</p>
  
  <pre><code>SELECT `city` FROM `city_table` WHERE (CONVERT(`code` USING utf8) LIKE 'נגב 297')
  </code></pre>
  
  <p>phpmyadmin returns results, as seen here: <a href="http://paulglushak.com/json/mysql_result.html" rel="nofollow">http://paulglushak.com/json/mysql_result.html</a></p>
  
  <p>The PHP code however returns as empty. Is there anything I'm doing wrong? I'm pretty sure I am.</p>