SELECT * FROM user_ank |
LEFT JOIN user_ban ON user_ban.user_id = user_ank.user_id |
INNER JOIN user ON user.id = user_ank.user_id |
WHERE user_ank.user_id = ? |
SELECT * FROM user_ank |
LEFT JOIN user_ban ON user_ban.user_id = user_ank.user_id |
INNER JOIN user ON user.id = user_ank.user_id |
WHERE user_ank.user_id = ? |
SELECT * FROM user_ank |
LEFT JOIN user_ban ON user_ban.user_id = user_ank.user_id |
WHERE user_ank.user_id = ? |
SELECT * FROM user |
LEFT JOIN user_ank ON user_ank.ank_id = user.id |
LEFT JOIN user_ban ON user_ban.ban_id = user.id |
WHERE user.id = $get_id LIMIT 1 |