Fix errors SQL in nkSessions.php (Part 2)