Fixed: Some AND/OR confusion in MySQL Events.module, can possible solve issue 502