Having for the query because of sum, and other stuffs...