I have a user table with columns named first_name and last_name.
SELECT *
FROM users
WHERE first_name LIKE '%keywords%'
OR last_name LIKE '%keywords%'
Using the above, if I search for "John" or for "Doe" I'll get a hit.
But if I search for "John Doe" I will get 0 results. How can I search MySQL in a way that will match "first_name last_name" rather than just one or the other?