$sql = "SELECT DATEDIFF(NOW(), '" . $lastseen . "') AS DAYS;";
$sql = "select floor((unix_timestamp(NOW()) - unix_timestamp('" . $lastseen . "')) / 86400) AS DAYS;";