title: Unknown column in field list PHP MySql
body: <p>Trying to perform this query:</p>
  
  <pre><code>$result = "INSERT INTO `user`(`username`, `ip`, `country`) VALUES ('$username','$location[ip]','$location[country]')";
  
  @mysql_query($result) or die("Error:". mysql_error());
  </code></pre>
  
  <p>Tried ever combination of single and double quotes, but constantly getting error: </p>
  
  <pre><code>Error:Unknown column 'ip' in 'field list'
  </code></pre>
  
  <p>Column 'ip' does exist in database, when I echo out query and run it in PHPMyAdmin it works perfectly</p>
  
  <pre><code>INSERT INTO `user`(`username`, `ip`, `country`) VALUES ('name32','127.0.0.1','mycountry')
  </code></pre>