Hi! I would like to query user information like (first_name, last_name, pic, uid) then join with comments data such as text, time.
first this is my query for comment
SELECT text, time, username, fromid FROM comment WHERE post_id ='123456'
then i need to join this query with user
SELECT first_name, last_name FROM user WHERE **uid='fromid'**
uid from user table can join with fromid from comment table.
how can i do it?
thank