select `port_id`, `ignore`, `ifOperStatus`, `ifLastChange`, TIMESTAMPDIFF(SECOND, `ifLastChange`, NOW()) diff from ports where `ifOperStatus`='down' and TIMESTAMPDIFF(SECOND, `ifLastChange`, NOW())>'259200';
