Also join iplog when end_time > NOW()

Added condition to join iplog table when the end_time is after the current time.