I have a table in which the following query works fine:
select * from session_actions where action_type IN (\'login_failed\',\'channel_recorded\')
You might be looking for FIND_IN_SET() function.
select * from session_actions where find_in_set(`action_type`,'login_failed,channel_recorded');
SAMPLE FIDDLE
I tried FIND_IN_SET but it was super slow. I rather use haystack REGEXP CONCAT('[[:<:]]', needle, '[[:>:]]') since then.
FIND_IN_SET
haystack REGEXP CONCAT('[[:<:]]', needle, '[[:>:]]')