There is no combination of LIKE and IN clauses. This is either one or the other syntax:
SELECT fields
FROM table
WHERE age = 50
AND ( name IN ('tim', 'bob', 'nancy', 'john')
OR name LIKE '2010-09-17%'
OR name LIKE '2010-09-16%')
An alternative to text search is Full Text Search (FTS) :
SELECT fields
FROM table
WHERE age = 50
AND MATCH(name) AGAINST('tim bob nancy john')
... but this requires MyISAM tables and full-text indexing.
source
share