title: AND, OR output wrong result
body: <p>Suppose I use 2 <code>AND</code> and one <code>OR</code> to retrieve a result, first test with input text value on <code>name</code>, I could get correct result but when I change <code>$getc</code> to any value other than empty string, the result does not change, it only query <code>name</code> value. What is wrong?</p>
  
  <pre><code>$query1 = "SELECT * FROM $tableName WHERE name LIKE '%$asd%' OR descriptions LIKE
      '%$asd%' AND category='$getc' AND company_type='$dsp' LIMIT $start, $limit";
  </code></pre>