Fixed bug in LIKE query handling.