Query failed! You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'AND preference='radio'' at line 1

Backtrace:
Array ( [0] => Array ( [file] => /home/chessman/public_html/webchess/includes/classes/Database.class.inc [line] => 94 [function] => read_query [class] => Database [object] => Database Object ( [queries:protected] => Array ( ) [read_count:protected] => 14 [write_count:protected] => 1 ) [type] => -> [args] => Array ( [0] => SELECT * FROM preferences WHERE playerID = AND preference='radio' [1] => [2] => 15 [3] => ) ) [1] => Array ( [file] => /home/chessman/public_html/webchess/login.php [line] => 892 [function] => query [class] => Database [object] => Database Object ( [queries:protected] => Array ( ) [read_count:protected] => 14 [write_count:protected] => 1 ) [type] => -> [args] => Array ( [0] => SELECT * FROM preferences WHERE playerID = AND preference='radio' ) ) )