Added SQL to log when publish isnt authorized for a channel/variable