şunun işini görmesi gerek.


SELECT
abc,id
FROM deneme
WHERE id LIKE '%,$id,%' OR id LIKE '$id,%' OR id LIKE '%,$id' OR id = '$id'