Mysql query- How to use contains? You can get use like this "SELECT * FROM `table` WHERE `group_members_id` LIKE '%{$userid}%'"