If you use our MySQLi Server Behaviors then we have a parameter type "Contains Text" that would work for that. Using the standard MySQL server behaviors from Adobe I would think your code sample would work, but I'd have to see the page in context to guess why it may not.