select * from tablo where find_in_set(6, replace(x, '|', ','))

senin cozumun budur dostum.