UPDATE base_teacher_attendance_schedule JOIN base_attendance_setting_record ON base_teacher_attendance_schedule.recordsettingid = base_attendance_setting_record.id SET base_teacher_attendance_schedule.settingName = base_attendance_setting_record.settingName WHERE 1 = 1 AND base_teacher_attendance_schedule.id = 488752