Fixed bug #31455: Regression on #31278: Improve counting of results in queries: Added HAVING to GROUP BY as reason to not use COUNT(*) and used magic method __get (documenting proprety-read instead of adding functions