Das sieht dann so aus ja?
PHP Code:
$sql="UPDATE gog_mitglieder SET UserSession='NULL' WHERE lastaction < '".NOW() - INTERVAL 5 MINUTE."'";
Comment