Missing SQL param causing death when player changes state.