title: Postgres Warning: pg_query(): Query failed: ERROR: operator does not exist: boolean = integer LINE 1
body: <p>i'm using postgres and i want tried date_diff, but i get this error <br></p>
  
  <blockquote>
    <p>Warning: pg_query(): Query failed: ERROR: operator does not exist:
    boolean = integer LINE 1</p>
  </blockquote>
  
  <p>and then this is my query <br></p>
  
  <pre><code>select id_mitra
        ,company_name 
  from ref_mitra
  where reject=0 and DATE_DIFF(now(),date_status) &gt; 3 and active='N'
  </code></pre>
  
  <p>what wrong in my query?</p>