public static function daysAsSql($begin, $end, $fieldName, $timezone = null) {
		$begin = new CakeTime($begin, $timezone);
		$begin = $begin->format('U');
		$end = new CakeTime($end, $timezone);
		$end = $end->format('U');
		$begin = date('Y-m-d', $begin) . ' 00:00:00';
		$end = date('Y-m-d', $end) . ' 23:59:59';

		return "($fieldName >= '$begin') AND ($fieldName <= '$end')";
	}