What is the difference between havingCondition and having?
I figured it out though trail and error.

Example of a having clause:

$query-&gt;having('user_count &gt; 0');


Example of a havingCondition clause:

$query-&gt;havingCondition('user_count', 0, '&gt;');


Essentially you can pass the alias, value and operator as separate arguments into havingCondition, but have to pass them all as one string into having.