Fixed forgotten variable name change.
Added time component to join in order to filter out inactive (time-wise) campaigns.
Removed leftover debugging.