I am having trouble with a query used by a google suggest type of feature in a CMS
The first link is the query that is provided by and used within the CMS itself, and works flawlessly.
The second is my modification, which works fine but when certain input is entered, such as 'b', generates a syntax error, and I can not understand why.
Is there something omitted or quite wrong in the second query?