I have a SELECT
with a WHERE
clause:
WHERE (`city` LIKE '%".$search."%' )
$search
is passed from a search box.
I'm trying to make it fit the search in 2 or even 3 tables. Something like:
WHERE (`name`, `country`, `city` LIKE '%".$search."%' )
Using that I get error:
Operand should contain 1 column(s)
What is wrong there? Also I would appreciate a hint about how could I make it search in concatenated tables?
I mean for a search like David Chicago
.