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.
Merge pull request #49 from mscdex/patch-1

fix error packet parsing