UPDATE ubi_info_state SET status = 0 WHERE TIMESTAMPDIFF(SECOND, update_time, NOW()) > (freq + 120)