我有以下 php 代码
$query = sprintf("SELECT to_go.to_location FROM to_go
INNER JOIN to_location ON to_go.to_location_id = to_location.id
WHERE match(to_location ) against(%s)", mysql_real_escape_string($location));
我尝试了所有方法,但它一直向我输出以下错误“'where 子句中的未知列?”我尝试更改列的名称,但仍然存在同样的问题
最佳答案
match(to_location ) against
需要提供一个字段,而不是一个表:
match(to_location.id) against(something)
关于php - ‘where 子句中的未知列?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7717845/