I'm getting an error on the following mysql_query()
$result = mysql_query("select $move from moves where game_num = '$ID' && color = 'blue'", $db);
the error output is
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 'from moves where game_num = '1' && color = 'blue'' at line 1
All variables are set, $db is a valid mysql link resource, the table exists and the column names are correct. There is data in the row I'm looking for. The following similar query works:
$result = mysql_query("select $moves[$i] from game_board where game_num = '$ID' && color = '$color2'", $db);
I don't know what I did wrong...