fix misspelled attribute name

While testing my code I found that on_error callback was not invoked for queries in case of fatal error. This patch fixes the problem, it happened to be wrong attribute name.