You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'and menutag_active = 1 and menutag_deleted is null order by menutag_name' at line 1
ErrorCode
string
0
Extended_Info
string
ExtendedInfo
string
Message
string
NativeErrorCode
number
1064
queryError
string
select * from menutag where businessid = and menutag_active = 1 and menutag_deleted is null order by menutag_name
Sql
string
select * from menutag where businessid = and menutag_active = 1 and menutag_deleted is null order by menutag_name
SQLState
string
42000
StackTrace
string
lucee.runtime.exp.DatabaseException:
at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:120)
at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:97)
at com.mysql.cj.jdbc.exceptions.SQLExceptionsMapping.translateException(SQLExceptionsMapping.java:122)
at com.mysql.cj.jdbc.StatementImpl.executeInternal(StatementImpl.java:782)
at com.mysql.cj.jdbc.StatementImpl.execute(StatementImpl.java:666)
at lucee.runtime.type.util.QueryUtil.execute(QueryUtil.java:293)
at lucee.runtime.type.QueryImpl.execute(QueryImpl.java:273)
at lucee.runtime.type.QueryImpl.<init>(QueryImpl.java:226)
at lucee.runtime.tag.Query.executeDatasoure(Query.java:951)
at lucee.runtime.tag.Query.doEndTag(Query.java:700)
at _public.templates.tmpl_store_cfm$cf.call(/public/templates/tmpl_store.cfm:6)
at lucee.runtime.PageContextImpl._doInclude(PageContextImpl.java:933)
at lucee.runtime.PageContextImpl._doInclude(PageContextImpl.java:823)
at lucee.runtime.PageContextImpl.doInclude(PageContextImpl.java:805)
at system.initialise.renderstore_cfm$cf.call(/system/initialise/renderstore.cfm:63)
at lucee.runtime.PageContextImpl._doInclude(PageContextImpl.java:933)
at lucee.runtime.PageContextImpl._doInclude(PageContextImpl.java:823)
at lucee.runtime.PageContextImpl.doInclude(PageContextImpl.java:805)
at system.templates.store_cfm$cf.call(/system/templates/store.cfm:8)
at lucee.runtime.PageContextImpl._doInclude(PageContextImpl.java:933)
at lucee.runtime.PageContextImpl._doInclude(PageContextImpl.java:823)
at lucee.runtime.listener.ModernAppListener._onRequest(ModernAppListener.java:218)
at lucee.runtime.listener.MixedAppListener.onRequest(MixedAppListener.java:43)
at lucee.runtime.PageContextImpl.execute(PageContextImpl.java:2464)
at lucee.runtime.PageContextImpl._execute(PageContextImpl.java:2454)
at lucee.runtime.PageContextImpl.executeCFML(PageContextImpl.java:2427)
at lucee.runtime.engine.Request.exe(Request.java:44)
at lucee.runtime.engine.CFMLEngineImpl._service(CFMLEngineImpl.java:1090)
at lucee.runtime.engine.CFMLEngineImpl.serviceCFML(CFMLEngineImpl.java:1038)
at lucee.loader.engine.CFMLEngineWrapper.serviceCFML(CFMLEngineWrapper.java:102)
at lucee.loader.servlet.CFMLServlet.service(CFMLServlet.java:51)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:742)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:198)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:493)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:81)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:342)
at org.apache.coyote.ajp.AjpProcessor.service(AjpProcessor.java:479)
at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)
at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:806)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1498)
at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:748)
TagContext
Array
1
Struct
codePrintHTML
string
4: <cfquery name="qry_getmenutags" datasource="#request.site_dsn#"><br>
5: select * from menutag where businessid = #variables.products.businessid# and menutag_active = 1 and menutag_deleted is null order by menutag_name<br>
<b>6: </cfquery></b><br>
7: <cfquery name="qry_getbusinesses" datasource="#request.site_dsn#"><br>
8: select * from business where businessid = #variables.products.businessid#<br>
codePrintPlain
string
4: <cfquery name="qry_getmenutags" datasource="#request.site_dsn#">
5: select * from menutag where businessid = #variables.products.businessid# and menutag_active = 1 and menutag_deleted is null order by menutag_name
6: </cfquery>
7: <cfquery name="qry_getbusinesses" datasource="#request.site_dsn#">
8: select * from business where businessid = #variables.products.businessid#