fix error packet parsing

According to the MySQL protocol docs, it's '#' followed by 5 bytes for the sqlState, then the message follows. Before this, error messages contained the last character from the sqlState.