title: Multiple condition in a single IF in select query
body: <pre><code>SELECT IF(utc_timestamp &gt;= DATE_ADD( initial_time, INTERVAL length_in_duration MINUTE)
            AND date(utc_timestamp) &lt; (closing_date)), 1 ,0) FROM table;
  </code></pre>
  
  <p>I get MySQL syntax error, any one please help.</p>