I do not think there is valid SQL construct INSERT ... WHERE ...
You need to use UPDATE statement if you wish to modify record, like this:
mysql_query("UPDATE users SET crew='$_POST[crewname]' WHERE username = '$_SESSION[username]'");
Also, make sure you sanitized the $_POST[crewname] and $_SESSION[username] values before using them in SQL query. For example if you have magic_quotes_gpc turned Off, and somebody choose crew name like O'Reilly - your query will return error, because you need to escape single quote in this case.