My database has information in two different languages. I've set up two different six-field FULLTEXT indexes, which cover the following fields
"contentindex" contains
title
blurb
maintext
first
last
otherinst
"contentindexsp" contains
titlesp
blurbsp
maintextsp
first
last
otherinstsp
When I run this search it works fine:
SELECT id,title AS title,itemtype,MATCH (title,blurb,maintext,first,last,otherinst)
AGAINST ('Spanish') AS score FROM cpcontent WHERE MATCH (title,blurb,maintext,first,last,otherinst)
AGAINST ('Spanish')
But this search gives me "Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource":
SELECT id,titlesp AS title,itemtype,MATCH (titlesp,blurbsp,maintextsp,first,last,otherinstsp)
AGAINST ('Spanish') AS score FROM cpcontent WHERE MATCH (titlesp,blurbsp,maintextsp,first,last,otherinstsp)
AGAINST ('Spanish')
I'm sure it's something simple, but I don't know what it is - help anyone?