SELECT
*,
MATCH (
c.title,
c.date,
c.author,
c.intro,
c.text,
g.developer,
g.publisher,
g.genre,
g.sound)
AGAINST ('Racing') AS score
FROM
content AS c
LEFT JOIN games AS g ON c.gid=g.gid
WHERE
MATCH (
c.title,
c.date,
c.author,
c.intro,
c.text,
g.developer,
g.publisher,
g.genre,
g.sound)
AGAINST ('Racing')
ORDER BY
score;
Or have I got the wrong end of the stick? is this roughly what you are after. Look up fulltext search in the MySQL manual. That query would require a fulltext key on all of those fields.
Alternativly you could do this:
SELECT
*
FROM
content AS c
LEFT JOIN games AS g ON c.gid=g.gid
WHERE
c.title LIKE '%Racing%' OR
c.date LIKE '%Racing%' OR
c.author LIKE '%Racing%' OR
c.intro LIKE '%Racing%' OR
c.text LIKE '%Racing%' OR
g.developer LIKE '%Racing%' OR
g.publisher LIKE '%Racing%' OR
g.genre LIKE '%Racing%' OR
g.sound LIKE '%Racing%';
Whatever, just some ideas, i don't know if this is exactly what you want.