Hi r937,
Thanks (once again) for helping me out!!
I basically want to count the instances of the 'friends' table that marry up with the 'memorials' table. Unfortunately, there are several instances in the 'memorials' table and I only want to count one of them.
So I want to say:
SELECT * FROM jtfriends friends, jtmemorials memorials (LIMIT THE RESULT FROM MEMORIALS TABLE TO 1) WHERE friends.memorial_ID = '.$their_ID.' AND memorials.post_author = '.$their_ID.' AND memorials.ID = '.$memorial_ID.' '
I hope that makes sense and, if it doesn't, please let me know and I'll try and be a bit clearer.
Thanks again for all your help. That's the third time you've helped me out on these forums and you really are a credit. I don't know how many people you help out on a day to day basis but you really need to know that it is appreciated (although I'm sure you roll your eyes at some of the questions!!).
Thank you
John
PS. After re-reading your question. I'm basically just looking for a count so I'm happy to use the ID of the friends table to use as the 'target' column. ;-)