"SELECT first_name, middle_name, last_name, title
FROM authors, books
WHERE book_author.author_id = authors.author_id
GROUP BY last_name"
Something is not right with this query.
As $PostResult renders an error when you try mysql_fetch_array.
We can put in [man]mysql_error[/man] and let MySQL give more info about it.
$PostQuery= "SELECT first_name, middle_name, last_name, title
FROM authors, books
WHERE book_author.author_id = authors.author_id
GROUP BY last_name";
$PostResult = mysql_query($PostQuery);
// if $PostResult returns FALSE, display Errror information
if(!$PostResult)
echo '<br />'.$PostQuery.'<br />'.mysql_error().'<br />';
while ($Row = mysql_fetch_array($PostResult)) {
print "$Row[title] by $Row[first_name] $Row[middle_name] $Row[last_name]<br/>\n";
}