I can get the Freetext syntax working directly in MySQL but when I transfer the statement to my PHP page I keep getting errors.

Here is my PHP snippet:
$select_statement_=_"SELECT_*, MATCH(name, first_name, compilation)_AGAINST('$query')_AS_score FROM_artist WHERE_MATCH(name, first_name, compilation)_AGAINST('$query') ORDER_BY_score_DESC";

$result_=_MySQL_query($select_statement);

Thanks to any suggestions.