Fixed missing relation in Error_log (error_code)