I have this table
**
--------------------------------------------------
| id | fname | lname | age
--------------------------------------------------
| 1 | John | Smith | 20
-------------------------------------------------
| 2 | John Craig | Smith | 20
--------------------------------------------------
| 3 | John Shaw | Smith | 20
--------------------------------------------------
MYSQL QUERY:
select id from person where concat(fname, lname) LIKE = '%johnsmith%'
- this can
select the id but if there are two words in last name like this:
select id from person where concat(fname, lname) LIKE = '%johncraigsmith%'
it will show no result.
Why? Can you help me?