Below is my table TABLE
id colname1 colname2 colname3
1 Alex John Mary
2 Alyssa Eben Stephen
3 Sandra Tina William
I try to use below query
SELECT * FROM TABLE WHERE CONCAT('colname',id) = 'Eben'
I expected the result would be from 2nd row 2nd column. But I get nothing. I referred many solutions which guides to use GROUP_CONCAT but I get nothing worked. Is this possible to do this with mysql?