The WHERE clause is used to filter rows before they are grouped and aggregated, whereas the HAVING clause is used as a condition to filter the result of aggregate functions applied to grouped data. WHERE is applied before any grouping, whereas HAVING is applied after grouping.
[blog_content_newsletter ip_blog_catid="882" ip_blog_taxonomy="iq-category"]