Same SQL Fix in mod_raidplanner_events module