adding mysql error number to query debug information