change mysql to mysql error function