In this instance, `$query` wouldn't be defined for `$query->month()`, this was the cause of one of the failures actually (see Mark's comments on http://joomlacode.org/gf/project/joomla/tracker/?action=TrackerItemEdit&tracker_item_id=30349).