私はこのクエリを持っています:
SELECT (
*)
,
MATCH(table1.tags,table1.title,table1.description) AGAINST ('".$keywords."' IN BOOLEAN MODE) AS ideas_score
FROM table1 JOIN table2 ON table1.id_user = table2.id HAVING ideas_score > 0
ORDER BY ideas_score DESC;
なぜ私がこれを行うとうまくいかないのですか?
SELECT (
table1.description,
table1.title,
table1.id,
table1.id_user,
table1.tags,
table1.insert_datetime,
table2.fb_id,
table2.fb_aliasname,
table2.firstname,
table2.lastname)
,
MATCH(table1.tags,table1.title,table1.description) AGAINST ('".$keywords."' IN BOOLEAN MODE) AS ideas_score
FROM table1 JOIN table2 ON table1.id_user = table2.id HAVING ideas_score > 0
ORDER BY ideas_score DESC;
私はいつもこのエラーを受け取ります:
Error Number: 1241
Operand should contain 1 column(s)