title: I try to query a mysql column which has the name "5". This outputs the wrong column which has the name "22"
body: <p>I try to query a mysql column which has the name "5". This outputs the wrong column which has the name "22".</p>
  
  <p>This is my php code, <code>$pid</code> is the variable I am getting from the android app and is always a number. When I search with <code>$pid = 5</code>, instead of getting the column "5" with artist1, it is getting the column "22" with eternal1. </p>
  
  <p>Basically it confuses the Column Name with # in the first print screen. If the # doesn't exist, then it searches correctly; so if I search with 16 I get the column 16. How do I fix this?</p>
  
  <pre><code>$pid = $_GET["pid"];
  
  $result=mysql_query("SELECT * FROM TableComments WHERE `$pid` IS NOT NULL ");
  </code></pre>
  
  <p><a href="http://imgur.com/WFsfEtB" rel="nofollow">http://imgur.com/WFsfEtB</a> </p>
  
  <p><a href="http://imgur.com/rZA27XC" rel="nofollow">http://imgur.com/rZA27XC</a></p>