Fixed SQL for get left attribute service from a crisis.