FreeMarker template error!

org.hibernate.hql.internal.ast.QuerySyntaxException: unexpected token: ilike near line 1, column 103 [SELECT table FROM firehouse_dt_employee AS table WHERE LOWER(table.slug) = :slug AND (table.fname not ilike 'Evan' and table.lname not ilike 'Henderson') or (table.fname not ilike 'everett' and table.lname not ilike 'wilder') ORDER BY table.order_num]
	at org.hibernate.hql.internal.ast.QuerySyntaxException.convert(QuerySyntaxException.java:91)
	at org.hibernate.hql.internal.ast.ErrorCounter.throwQueryException(ErrorCounter.java:109)
	at org.hibernate.hql.internal.ast.QueryTranslatorImpl.parse(QueryTranslatorImpl.java:304)
	at org.hibernate.hql.internal.ast.QueryTranslatorImpl.doCompile(QueryTranslatorImpl.java:203)
	at org.hibernate.hql.internal.ast.QueryTranslatorImpl.compile(QueryTranslatorImpl.java:158)
	at org.hibernate.engine.query.spi.HQLQueryPlan.<init>(HQLQueryPlan.java:131)
	at org.hibernate.engine.query.spi.HQLQueryPlan.<init>(HQLQueryPlan.java:93)
	at org.hibernate.engine.query.spi.QueryPlanCache.getHQLQueryPlan(QueryPlanCache.java:167)
	at org.hibernate.internal.AbstractSessionImpl.getHQLQueryPlan(AbstractSessionImpl.java:301)
	at org.hibernate.internal.AbstractSessionImpl.createQuery(AbstractSessionImpl.java:236)
	at org.hibernate.internal.SessionImpl.createQuery(SessionImpl.java:1836)
	at net.proteusframework.ui.search.HQLResolver.createQuery(HQLResolver.java:127)
	at com.i2rd.dynamic.table.DynamicTableDAO.getRows(DynamicTableDAO.java:1044)
	at com.i2rd.dynamic.table.DynamicTableDAO.getRows(DynamicTableDAO.java:1023)
	at com.i2rd.domainmodel.extension.impl.DynamicTableModelExtension.getCollectionData(DynamicTableModelExtension.java:238)
	at com.i2rd.domainmodel.supplier.DefaultDomainModelMediator.getCollectionData(DefaultDomainModelMediator.java:556)
	at com.i2rd.freemarker.domainmodel.DomainModelInvocationHandler.handleTemplateSequenceModel(DomainModelInvocationHandler.java:381)
	at com.i2rd.freemarker.domainmodel.DomainModelInvocationHandler.invoke(DomainModelInvocationHandler.java:209)
	at com.sun.proxy.$Proxy196.size(Unknown Source)
	at freemarker.core.IteratorBlock$Context.runLoop(IteratorBlock.java:152)
	at freemarker.core.Environment.visitIteratorBlock(Environment.java:501)
	at freemarker.core.IteratorBlock.accept(IteratorBlock.java:67)
	at freemarker.core.Environment.visit(Environment.java:257)
	at freemarker.core.MixedContent.accept(MixedContent.java:57)
	at freemarker.core.Environment.visit(Environment.java:257)
	at freemarker.core.Environment.process(Environment.java:235)
	at com.i2rd.freemarker.component.FreeMarkerGenerator.render(FreeMarkerGenerator.java:259)
	at net.proteusframework.cms.controller.RenderChain.render_internal(RenderChain.java:172)
	at net.proteusframework.cms.controller.RenderChain.doChain(RenderChain.java:125)
	at net.proteusframework.cms.controller.PageElementChain.walk(PageElementChain.java:201)
	at net.proteusframework.cms.controller.RenderChain.renderChildElements(RenderChain.java:118)
	at net.proteusframework.cms.controller.HTMLBoxGenerator.render(HTMLBoxGenerator.java:167)
	at net.proteusframework.cms.controller.BoxResource.writeContent(BoxResource.java:55)
	at net.proteusframework.internet.http.resource.CachedResource.ensureCached(CachedResource.java:1179)
	at net.proteusframework.internet.http.resource.CachedResource.setIsolationLevel(CachedResource.java:793)
	at net.proteusframework.internet.http.resource.ResourceManagerImpl.setIsolationLevel(ResourceManagerImpl.java:137)
	at net.proteusframework.internet.http.resource.ResourceWriterUtil.writeResource(ResourceWriterUtil.java:323)
	at net.proteusframework.internet.http.resource.ResourceWriterUtil.writeResource(ResourceWriterUtil.java:306)
	at net.proteusframework.cms.controller.RenderChain.render_internal(RenderChain.java:168)
	at net.proteusframework.cms.controller.RenderChain.doChain(RenderChain.java:125)
	at net.proteusframework.cms.controller.PageElementChain.walk(PageElementChain.java:201)
	at net.proteusframework.cms.controller.RenderChain.renderChildElements(RenderChain.java:118)
	at net.proteusframework.cms.controller.HTMLBoxGenerator.render(HTMLBoxGenerator.java:167)
	at net.proteusframework.cms.controller.BoxResource.writeContent(BoxResource.java:55)
	at net.proteusframework.internet.http.resource.CachedResource.ensureCached(CachedResource.java:1179)
	at net.proteusframework.internet.http.resource.CachedResource.setIsolationLevel(CachedResource.java:793)
	at net.proteusframework.internet.http.resource.ResourceManagerImpl.setIsolationLevel(ResourceManagerImpl.java:137)
	at net.proteusframework.internet.http.resource.ResourceWriterUtil.writeResource(ResourceWriterUtil.java:323)
	at net.proteusframework.internet.http.resource.ResourceWriterUtil.writeResource(ResourceWriterUtil.java:306)
	at net.proteusframework.cms.controller.RenderChain.render_internal(RenderChain.java:168)
	at net.proteusframework.cms.controller.RenderChain.doChain(RenderChain.java:125)
	at net.proteusframework.cms.controller.PageElementChain.walk(PageElementChain.java:201)
	at net.proteusframework.cms.controller.RenderChain.renderChildElements(RenderChain.java:118)
	at net.proteusframework.cms.controller.HTMLPageGenerator.render(HTMLPageGenerator.java:455)
	at net.proteusframework.cms.controller.PageResource.writeContent(PageResource.java:51)
	at net.proteusframework.internet.http.resource.CachedResource.ensureCached(CachedResource.java:1179)
	at net.proteusframework.internet.http.resource.CachedResource.setIsolationLevel(CachedResource.java:793)
	at net.proteusframework.internet.http.resource.ResourceManagerImpl.setIsolationLevel(ResourceManagerImpl.java:137)
	at net.proteusframework.internet.http.resource.ResourceWriterUtil.writeResource(ResourceWriterUtil.java:323)
	at net.proteusframework.internet.http.resource.ResourceWriterUtil.writeResource(ResourceWriterUtil.java:306)
	at net.proteusframework.cms.controller.RenderChain.render_internal(RenderChain.java:168)
	at net.proteusframework.cms.controller.Processor.processAndRender(Processor.java:296)
	at net.proteusframework.cms.controller.Processor.handle(Processor.java:231)
	at net.proteusframework.cms.controller.Cms.doPost(Cms.java:593)
	at net.proteusframework.cms.controller.Cms.doGet(Cms.java:537)
	at net.proteusframework.cms.controller.Cms.service(Cms.java:302)
	at net.proteusframework.cms.controller.Cms.service(Cms.java:192)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
	at net.proteusframework.internet.servlet.filter.ClientLog4JFilter.doFilter(ClientLog4JFilter.java:192)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
	at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:264)
	at net.proteusframework.users.authentication.RecordAccessFilter.doFilter(RecordAccessFilter.java:77)
	at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
	at net.proteusframework.cms.controller.CmsContextFilter.doFilter(CmsContextFilter.java:184)
	at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
	at net.proteusframework.users.authentication.ProteusRememberMeProcessingFilter.doFilter(ProteusRememberMeProcessingFilter.java:100)
	at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
	at net.proteusframework.internet.servlet.filter.HibernateSessionHandlerFilter.doFilter(HibernateSessionHandlerFilter.java:99)
	at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
	at org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:191)
	at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
	at org.acegisecurity.util.FilterChainProxy.doFilter(FilterChainProxy.java:148)
	at org.acegisecurity.util.FilterToBeanProxy.doFilter(FilterToBeanProxy.java:90)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
	at net.proteusframework.internet.servlet.filter.compression.CompressionFilter.doFilter(CompressionFilter.java:126)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
	at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:931)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
	at org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:200)
	at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)
	at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:310)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at java.lang.Thread.run(Thread.java:748)