SELECT u.id, u.name
FROM users AS u
INNER JOIN votes AS v
ON u.id=v.user_id
WHERE u.id!=13 AND v.user_id=13 AND v.vote_user_id!=13;