[PATCH] Updated audit failure query functionality