This SQL query works perfectly well when I remove the AS
clause.
$query = "SELECT bd_brushname FROM tbl_brushdescription WHERE MATCH(bd_brushname, bd_brushdescription) AGAINST ('brushes' IN BOOLEAN MODE) AS rank";
$sqlquery = mysql_query($query);
if($sqlquery === FALSE){
die(mysql_error());
}
And when I use AS
, it says 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 'AS rank' at line 1
Could someone please tell me why its not working?