Hi all,
My limited database knowledge is holding me back. I have the following psuedo SQL query that I know I should be able to JOIN or IN some way so I don't have to do multiple queries, but I just can't get it to work. This probably explains my situation easiest:
comment_ID is in $commentstable and comment_id is in $commentsmetatable and I know it's this column that links the two tables together, but not sure how to get the results I want.
Any help is much appreciated.
My limited database knowledge is holding me back. I have the following psuedo SQL query that I know I should be able to JOIN or IN some way so I don't have to do multiple queries, but I just can't get it to work. This probably explains my situation easiest:
Code:
SELECT comment_ID, comment_post_ID, user_id, comment_id, meta_value FROM $commentstable, $commentmetatable WHERE user_id = $currentuserid AND comment_ID = comment_id
comment_ID is in $commentstable and comment_id is in $commentsmetatable and I know it's this column that links the two tables together, but not sure how to get the results I want.
Any help is much appreciated.