title: MySQL not equals to isn't working
body: <p>This is my code:</p>
  
  <pre><code>$query = mysql_query("SELECT P_Id, Thing,Something Date
      FROM priv
      WHERE Something = '$thing' AND thing2 &lt;&gt; 'This'
      LIMIT 1"
  ) or die(mysql_error());
  </code></pre>
  
  <p>Code is working properly without <code>"thing2 &lt;&gt; 'this'"</code> statement, but when I implement <code>"thing2 &lt;&gt; 'this'"</code>, it returns 0 result. As if there were no empty rows in the table, but  there are empty (<code>NULL</code>) rows in the thing2 row of the table.</p>
  
  <p>The problem is, that this "not equals" statement is not working, and I've tried everything, but it won't return any values with it.</p>
  
  <p>edit(word of explanation):
  Columns looks like this - P_Id | Something | Date | Thing1 | Thing 2 and i need to receive P_Id from a row where Something = Something AND Thing1 NOT EQLAS to 'this'(above example) and Thing2 ALSO NOT EQUALS to 'this'.I know it sounds crazy.Sorry </p>
  
  <p>Ok, so i have tried some experiments, and it apears that "thing2 &lt;>" thingy is not working on things1/thing2 columns, but other columns like "Something" table where are also 'this' entries it works properly(finding nerest row where there is not 'this' entry).But why this isn't working with things1 and 2???i have tried rename things column, but no result.</p>