Can someone help me correct the following error I keep getting when trying to run my MySQL query.
Here is my 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 'WHERE user_id = '3' AND id = '3' AND friendship_status = '0'' at line 2
Here is my mysql code.
SELECT users_friends.*
WHERE user_id = '$user_id'
AND id = '$request_id'
AND friendship_status = '0'