What have you tried to test using that SELECT statement.
You syntax is correct, based on the documentation at www.mysql.com.
Does it work using a literal string in place of your variable?
if not then there is something wrong with the syntax.
Otherwise print your variable before it's used in the SELECT statement, see if there is anything wrong with it.
Does any SELECT with LIKE works?