Last modified: 2012-12-30 20:44:04 UTC
It simply set array( 'rowcount' => 'COUNT(*)' ) as $var, causing count of the first group fetched and treated as the count of all grouped rows.