Multi-Column Name Search MySQL
问题 I am currently working on a live search and I need to be able to find parts of a name in two columns (we need to separate first and last name). I personally would like to keep the command short, however the only way I have been able to get this to work is: User Searches For John Doe Generated SQL Query SELECT * FROM users WHERE (first_name LIKE '%john%' OR last_name LIKE '%john%') AND (last_name LIKE '%doe%' OR last_name LIKE '%doe%'); The search field is one box so I do some simple