title: Mysql query have issue
body: <p>I have a Db query which should return value:</p>
  
  <pre><code>$gbe=mysql_query("SELECT userid FROM `gift_stage` WHERE amount='500' AND (`assign` &gt; '1' AND `assign` &lt; '18') AND userid !='".$class_session-&gt;isuser()."' ORDER BY id ASC LIMIT 1");
  </code></pre>
  
  <p>but it is not showing any value, but when I replace <code>AND (</code>assign<code>&gt; '1' AND</code>assign<code>&lt; '18')</code> with <code>AND (</code>assign<code>&gt; '1')</code> it is giving the expected result. But I am not getting that where is the problem, because the field <code>assign</code> alread have the value '13' in database</p>
  
  <p>please help me guys</p>
  
  <p>all fields are varchar</p>