analytics: fix bug in revenue recognition query

Without this condition, after the last day of the month, the current
month's total is included in the past rev rec and added to every
day.

Reported-by: Kevin Postlewaite <kevinpostlewaite@gmail.com>
Signed-off-by: Pierre-Alexandre Meyer <pierre@ning.com>