Hi,
I have a fairly simple question, but I can't get my head arround this. Here's the basics of my site.
Friend-Party Agenda
A _ a Table with items
B _ a Table with replies to that item
AB _ the table that links these two tables by the primairy key.
When I send my query with PHP it looks like this:
PHP Code:
$id = 3; // just a random id to search for
$query=
"SELECT b.*
FROM ab
LEFT JOIN b ON (b.id = ab.b_id)
WHERE (ab.a_id = {$id})";
Now this gives me all the replies that are stored in table b, but here comes the question:
How can extend this query so that it will also send back the data of corresponding row a? This will be just 1 row.. I need it, very badly.
I hope someone can help me out

I know it's easier to do it with a parent ID stored for each reply, but I've read that this is a better way to do it.
Greetings,
Geit