The following is my statement (im getting a syntax error);
SELECT * FROM uploads AS U MATCH(U.title, U.description, U.filepath) AGAINST('ACTG 4160 -
Advanced Financial Accounting new search' IN NATURAL LANGUAGE MODE) LEFT JOIN courses AS C
ON U.Course_id = C.Id
Basically, i have 2 tables, one that has uploads (and i need to search their title, description and filepath) and the second table has all the courses that i also need to search their title too.
I’m trying to do a fulltext search on the uploads table with the above fields and the courses table on the title field.
I’ve tried the following other queries, but to no avail;
SELECT *, MATCH( U.title, U.description, U.filepath) AGAINST('ARTH 5180B asdfdsaf')
FROM uploads AS U LEFT JOIN courses AS C ON U.Course_id = C.Id WHERE MATCH(C.title)
AGAINST('ARTH 5180B asdfdsaf')
Thanks a ton!
In the first query, as Marc B mentions, the MATCH is in the wrong place. In the second, it looks like you’re using a WHERE in the LEFT JOIN when you should be using AND, i.e.: