I have the following query:
SELECT * FROM `alerts` WHERE `title` LIKE `%template%`
This should return at least 3 results with titles that includes the word ‘template’ but I’m getting the following error: –
1054 – Unknown column ‘%template%’ in ‘where clause’
As far as I can tell its syntactically correct and calling the correct column names. What am I missing?
Use single quotes for the
%template%: