SQL builder HAVING clause support
added $this to a few hook parameters