I found someone through Google with a similar issue. Here is an adaptation of the code that they used successfully.
Apparently you have to concatenate the wildcards into the string before LIKE can use them in a comparison. This makes perfect sense when you consider that LIKE expects to compare literal strings. Definitely not trivial though. I had to dig around a bit to find this solution.