Thanks guys, but no joy...
I tried both your methods (my end SQL statement is below), and get the results joined across the result array as:
Issue.id | feat.head | feat.body | news.head | news.body
So I get loads of duplicate news results and when it comes to print the results in a while loop I can't isolate news items from features and order them correctly.
Any further ideas? Otherwise I'm gonna have to go with a bunch of separate queries and a temporary table... bah...
Roki (current code & results follow)
$sql = "SELECT feat.headline, feat.body, news.headline, news.body ";
$sql.= "FROM feat, news ";
$sql.= "WHERE feat.issue_id=news.issue_id AND (feat.headline LIKE '%$keyword%' OR ";
$sql.= "feat.body LIKE '%$keyword%' OR news.headline LIKE '%$keyword%' OR news.body LIKE '%$keyword%') ";
Gives results like:
The houses of pain - Hilton's reassessment of relationship could see ad business leave Scotland
Reiding and writing - Hilton's reassessment of relationship could see ad business leave Scotland
Feature 1 - News 1
Feature 2 - News 1
Feature 1 - News 2
Feature 2 - News 2
Feature 1 - News 3
Feature 2 - News 3
(this goes on for some time...)