Ver originalWHEREFROM_UNIXTIME(lastaccess)BETWEENDATE_SUB(FROM_UNIXTIME(UNIX_TIMESTAMP()), INTERVAL 1 WEEK)ANDFROM_UNIXTIME(UNIX_TIMESTAMP());