Does anyone see anything wrong with this code? Everytime I run this with the "in boolean mode" in the statement, it gives me an error. Here is the code, and the error:
SELECT DISTINCT stories.story_id, DATE_FORMAT(stories.pub_date, '%Y %m-%d'), stories.pub_id, stories.section_id, stories.page, stories.series, stories.keyword_id, stories.byline, stories.headline, stories.intro, stories.bodytext, stories.correction, stories.correction_date, stories.label FROM stories WHERE match(stories.byline) AGAINST('+baker' in boolean mode) AND stories.pub_date BETWEEN '2002-12-01' AND '2002-12-31' ORDER BY stories.pub_date DESC
Error: "You have an error in your SQL syntax near 'boolean mode AND stories.pub_date BETWEEN '2002-12-01' AND '2002-12-31' ORDER BY' at line 1"
Where did I go wrong? I am using PHP Version 4.0.4pl1 and MySQL 3.23.33
Thanks.