funcAnsUser record_error has sql error