MySQL response: 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 ' friend_id, user_id ) AS `id`,
status
FROM
social_friend
W' at line 2
Query:
SELECT
IF( user_id = , friend_id, user_id ) AS `id`,
status
FROM
social_friend
WHERE
status IN (2,1)
AND
(
( user_id = AND friend_id IN (511) )
OR ( friend_id = AND user_id IN (511) )
)
LIMIT
1; Друзья — ДНК нашего Мира