Fix SQL injection vulnerability in ntbb-ladder.lib.php