I want SQL to show / order the results for the column name
first then show results for the description
column last.
Current SQL query:
SELECT * FROM products WHERE (name LIKE '%$search_query%' OR description LIKE '%$search_query%')
I tried adding order by name, description [ASC|DESC]
on the end but that didn't work.
It's for optimizing the search results. If a certain word is found in description
it should go last if a certain word is also found in the name
column.