Sorry for the bad title, but I don\'t know how to describe what I\'m trying to do, but hopefully my explanation will make sense.
Anyway, I have 3 tables in my databas