I can't seem to get this query to work can someone help me fix it.
Here is the MySQL code.
SELECT users.(user_id, pic, first_name, last_name, username),
comments.(id, user_id, date_created)
FROM users
INNER JOIN comments ON users.user_id = comments.user_id
WHERE comments.user_id = '$user_id'
GROUP BY comments.date_created
I get the following error:
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(user_id, pic, first_name, last_name, username), comments.(id, user_id, date_created)' at line 1