Postgres Query with LIKE and NOT EQUAL TO
<p>I'm trying to write a query with LIKE and != conditions:</p>

<pre><code>SELECT * 
FROM   posts 
WHERE  title LIKE 'term%' 
  OR   NAME LIKE 'term%' 
 AND   post_type != 'type'; 
</code></pre>

<p>However, the query results are not being filtered by post_type. Is there something wrong with my syntax?</p>