Error when executing query
<p>What is wrong in my below query. I'm getting this  error "Bad number of arguments. <br> 
Expected 3 arguments" I think I am going wrong in SUM statement <br></p>

<pre><code>SELECT  
  groupname,  
  EXACT_COUNT_DISTINCT(prodname) AS COUNT_prodname, 
  SUM(IF(category = 'AAA') AND (Label = 'n')) AS COUNT_prod_success  
FROM  
 [mytable]  
WHERE  
  name CONTAINS('XYZ')  
  AND Package ='ABCD'  
  AND (StartTime &gt; ('2016-01-24 00:00:00 UTC')  
    AND StartTime &lt; ('2016-03-16 00:00:00 UTC')  
    OR (StartTime &gt; ('2016-03-26 00:00:00 UTC')  
      AND StartTime &lt; CURRENT_TIMESTAMP()))  
GROUP BY  
  1  
ORDER BY  
  2 DESC IGNORE CASE  
</code></pre>