Quote:
Originally Posted by r937
that query couldn't possibly have worked
first of all, you cannot assign a column alias in the SELECT clause and then use that alias in the WHERE clause
more importantly, however, you're missing your FROM clause
please do a SHOW CREATE TABLE so we can see what indexes the table has
|
Here is the show table
CREATE TABLE `dc_titles` (
`titleid` bigint(20) NOT NULL AUTO_INCREMENT,
`titletext` varchar(128) NOT NULL,
PRIMARY KEY (`titleid`),
FULLTEXT KEY `titletext` (`titletext`)
) ENGINE=MyISAM AUTO_INCREMENT=610 DEFAULT CHARSET=latin1
Now the exact query what I am using is
SELECT *, MATCH(titletext) AGAINST('Best computer shops') AS score FROM dc_titles WHERE (MATCH(titletext) AGAINST('Best computer shops')) > 1 ORDER BY score DESC LIMIT 0,20;