title: Multiple condition in IF in SELECT
body: <p>Take the following statement:</p>
  
  <pre><code>SELECT SUM( IF( talktime &gt; 4 AND status = 'answer' , 1, 0 ) ) as count FROM table
  </code></pre>
  
  <p>The output should be count the rows that fulfill both conditions.</p>
  
  <p>Is the statement valid? </p>
  
  <p>EDIT:</p>
  
  <p>I'm interested in the multiple condition part in IF.</p>