Fixed a bug with LIKE queries.