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 isActive = 1 order by pageSortOrder' at line 1
NativeErrorCode
number
1064
queryError
string
select * from pageSections where pageId = and isActive = 1 order by pageSortOrder;
Sql
string
select * from pageSections where pageId = and isActive = 1 order by pageSortOrder;
SQLState
string
42000
StackTrace
string
lucee.runtime.exp.DatabaseException: 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 isActive = 1 order by pageSortOrder' at line 1
at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:112)
at com.mysql.cj.jdbc.exceptions.SQLExceptionsMapping.translateException(SQLExceptionsMapping.java:114)
at com.mysql.cj.jdbc.StatementImpl.executeInternal(StatementImpl.java:837)
at com.mysql.cj.jdbc.StatementImpl.execute(StatementImpl.java:685)
at lucee.runtime.type.util.QueryUtil.execute(QueryUtil.java:345)
at lucee.runtime.type.QueryImpl.execute(QueryImpl.java:293)
at lucee.runtime.type.QueryImpl.<init>(QueryImpl.java:239)
at lucee.runtime.tag.Query.executeDatasoure(Query.java:1125)
at lucee.runtime.tag.Query._doEndTag(Query.java:692)
at lucee.runtime.tag.Query.doEndTag(Query.java:557)
at index_cfm$cf$cw.call(/index.cfm:29)
at lucee.runtime.PageContextImpl._doInclude(PageContextImpl.java:1082)
at lucee.runtime.PageContextImpl._doInclude(PageContextImpl.java:1006)
at lucee.runtime.PageContextImpl.doInclude(PageContextImpl.java:987)
at controller_cfm$cf$dh.call(/controller.cfm:20)
at lucee.runtime.PageContextImpl._doInclude(PageContextImpl.java:1082)
at lucee.runtime.PageContextImpl._doInclude(PageContextImpl.java:1006)
at lucee.runtime.PageContextImpl.doInclude(PageContextImpl.java:987)
at application_cfc$cf.udfCall(/Application.cfc:27)
at lucee.runtime.type.UDFImpl.implementation(UDFImpl.java:112)
at lucee.runtime.type.UDFImpl._call(UDFImpl.java:357)
at lucee.runtime.type.UDFImpl.call(UDFImpl.java:224)
at lucee.runtime.ComponentImpl._call(ComponentImpl.java:678)
at lucee.runtime.ComponentImpl._call(ComponentImpl.java:595)
at lucee.runtime.ComponentImpl.call(ComponentImpl.java:2101)
at lucee.runtime.listener.ModernAppListener.call(ModernAppListener.java:477)
at lucee.runtime.listener.ModernAppListener._onRequest(ModernAppListener.java:212)
at lucee.runtime.listener.MixedAppListener.onRequest(MixedAppListener.java:41)
at lucee.runtime.PageContextImpl.execute(PageContextImpl.java:2810)
at lucee.runtime.PageContextImpl._execute(PageContextImpl.java:2797)
at lucee.runtime.PageContextImpl.executeCFML(PageContextImpl.java:2768)
at lucee.runtime.engine.Request.exe(Request.java:45)
at lucee.runtime.engine.CFMLEngineImpl._service(CFMLEngineImpl.java:1109)
at lucee.runtime.engine.CFMLEngineImpl.serviceCFML(CFMLEngineImpl.java:1066)
at lucee.loader.engine.CFMLEngineWrapper.serviceCFML(CFMLEngineWrapper.java:97)
at lucee.loader.servlet.jakarta.CFMLServlet.service(CFMLServlet.java:52)
at jakarta.servlet.http.HttpServlet.service(HttpServlet.java:710)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:130)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:109)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:167)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:79)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:483)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:116)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:93)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:74)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343)
at org.apache.coyote.ajp.AjpProcessor.service(AjpProcessor.java:420)
at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:63)
at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:903)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1744)
at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:52)
at org.apache.tomcat.util.threads.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at org.apache.tomcat.util.threads.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:637)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:59)
at java.base/java.lang.Thread.run(Unknown Source)
27: <cfquery name="sections" datasource="#datasrc#">
28: select * from pageSections where pageId = #page.pageId# and isActive = 1 order by pageSortOrder;
29: </cfquery>
30: <cfif isdefined("showPreviewContent") and showPreviewContent and isdefined("url.hid") and url.hid GT 0>
31: <!--- We want to preview a old history content piece --->
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 isActive = 1 order by pageSortOrder' at line 1
name
string
onRequest
NativeErrorCode
number
1064
queryError
string
select * from pageSections where pageId = and isActive = 1 order by pageSortOrder;
rootCause
Struct Entries: 15
additional
Struct (ordered)
SQL
string
select * from pageSections where pageId = and isActive = 1 order by pageSortOrder;
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 isActive = 1 order by pageSortOrder' at line 1
NativeErrorCode
number
1064
queryError
string
select * from pageSections where pageId = and isActive = 1 order by pageSortOrder;
Sql
string
select * from pageSections where pageId = and isActive = 1 order by pageSortOrder;
SQLState
string
42000
StackTrace
string
lucee.runtime.exp.DatabaseException: 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 isActive = 1 order by pageSortOrder' at line 1
at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:112)
at com.mysql.cj.jdbc.exceptions.SQLExceptionsMapping.translateException(SQLExceptionsMapping.java:114)
at com.mysql.cj.jdbc.StatementImpl.executeInternal(StatementImpl.java:837)
at com.mysql.cj.jdbc.StatementImpl.execute(StatementImpl.java:685)
at lucee.runtime.type.util.QueryUtil.execute(QueryUtil.java:345)
at lucee.runtime.type.QueryImpl.execute(QueryImpl.java:293)
at lucee.runtime.type.QueryImpl.<init>(QueryImpl.java:239)
at lucee.runtime.tag.Query.executeDatasoure(Query.java:1125)
at lucee.runtime.tag.Query._doEndTag(Query.java:692)
at lucee.runtime.tag.Query.doEndTag(Query.java:557)
at index_cfm$cf$cw.call(/index.cfm:29)
at lucee.runtime.PageContextImpl._doInclude(PageContextImpl.java:1082)
at lucee.runtime.PageContextImpl._doInclude(PageContextImpl.java:1006)
at lucee.runtime.PageContextImpl.doInclude(PageContextImpl.java:987)
at controller_cfm$cf$dh.call(/controller.cfm:20)
at lucee.runtime.PageContextImpl._doInclude(PageContextImpl.java:1082)
at lucee.runtime.PageContextImpl._doInclude(PageContextImpl.java:1006)
at lucee.runtime.PageContextImpl.doInclude(PageContextImpl.java:987)
at application_cfc$cf.udfCall(/Application.cfc:27)
at lucee.runtime.type.UDFImpl.implementation(UDFImpl.java:112)
at lucee.runtime.type.UDFImpl._call(UDFImpl.java:357)
at lucee.runtime.type.UDFImpl.call(UDFImpl.java:224)
at lucee.runtime.ComponentImpl._call(ComponentImpl.java:678)
at lucee.runtime.ComponentImpl._call(ComponentImpl.java:595)
at lucee.runtime.ComponentImpl.call(ComponentImpl.java:2101)
at lucee.runtime.listener.ModernAppListener.call(ModernAppListener.java:477)
at lucee.runtime.listener.ModernAppListener._onRequest(ModernAppListener.java:212)
at lucee.runtime.listener.MixedAppListener.onRequest(MixedAppListener.java:41)
at lucee.runtime.PageContextImpl.execute(PageContextImpl.java:2810)
at lucee.runtime.PageContextImpl._execute(PageContextImpl.java:2797)
at lucee.runtime.PageContextImpl.executeCFML(PageContextImpl.java:2768)
at lucee.runtime.engine.Request.exe(Request.java:45)
at lucee.runtime.engine.CFMLEngineImpl._service(CFMLEngineImpl.java:1109)
at lucee.runtime.engine.CFMLEngineImpl.serviceCFML(CFMLEngineImpl.java:1066)
at lucee.loader.engine.CFMLEngineWrapper.serviceCFML(CFMLEngineWrapper.java:97)
at lucee.loader.servlet.jakarta.CFMLServlet.service(CFMLServlet.java:52)
at jakarta.servlet.http.HttpServlet.service(HttpServlet.java:710)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:130)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:109)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:167)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:79)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:483)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:116)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:93)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:74)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343)
at org.apache.coyote.ajp.AjpProcessor.service(AjpProcessor.java:420)
at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:63)
at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:903)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1744)
at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:52)
at org.apache.tomcat.util.threads.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at org.apache.tomcat.util.threads.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:637)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:59)
at java.base/java.lang.Thread.run(Unknown Source)
27: <cfquery name="sections" datasource="#datasrc#">
28: select * from pageSections where pageId = #page.pageId# and isActive = 1 order by pageSortOrder;
29: </cfquery>
30: <cfif isdefined("showPreviewContent") and showPreviewContent and isdefined("url.hid") and url.hid GT 0>
31: <!--- We want to preview a old history content piece --->
select * from pageSections where pageId = and isActive = 1 order by pageSortOrder;
SQLState
string
42000
StackTrace
string
lucee.runtime.exp.DatabaseException: 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 isActive = 1 order by pageSortOrder' at line 1
at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:112)
at com.mysql.cj.jdbc.exceptions.SQLExceptionsMapping.translateException(SQLExceptionsMapping.java:114)
at com.mysql.cj.jdbc.StatementImpl.executeInternal(StatementImpl.java:837)
at com.mysql.cj.jdbc.StatementImpl.execute(StatementImpl.java:685)
at lucee.runtime.type.util.QueryUtil.execute(QueryUtil.java:345)
at lucee.runtime.type.QueryImpl.execute(QueryImpl.java:293)
at lucee.runtime.type.QueryImpl.<init>(QueryImpl.java:239)
at lucee.runtime.tag.Query.executeDatasoure(Query.java:1125)
at lucee.runtime.tag.Query._doEndTag(Query.java:692)
at lucee.runtime.tag.Query.doEndTag(Query.java:557)
at index_cfm$cf$cw.call(/index.cfm:29)
at lucee.runtime.PageContextImpl._doInclude(PageContextImpl.java:1082)
at lucee.runtime.PageContextImpl._doInclude(PageContextImpl.java:1006)
at lucee.runtime.PageContextImpl.doInclude(PageContextImpl.java:987)
at controller_cfm$cf$dh.call(/controller.cfm:20)
at lucee.runtime.PageContextImpl._doInclude(PageContextImpl.java:1082)
at lucee.runtime.PageContextImpl._doInclude(PageContextImpl.java:1006)
at lucee.runtime.PageContextImpl.doInclude(PageContextImpl.java:987)
at application_cfc$cf.udfCall(/Application.cfc:27)
at lucee.runtime.type.UDFImpl.implementation(UDFImpl.java:112)
at lucee.runtime.type.UDFImpl._call(UDFImpl.java:357)
at lucee.runtime.type.UDFImpl.call(UDFImpl.java:224)
at lucee.runtime.ComponentImpl._call(ComponentImpl.java:678)
at lucee.runtime.ComponentImpl._call(ComponentImpl.java:595)
at lucee.runtime.ComponentImpl.call(ComponentImpl.java:2101)
at lucee.runtime.listener.ModernAppListener.call(ModernAppListener.java:477)
at lucee.runtime.listener.ModernAppListener._onRequest(ModernAppListener.java:212)
at lucee.runtime.listener.MixedAppListener.onRequest(MixedAppListener.java:41)
at lucee.runtime.PageContextImpl.execute(PageContextImpl.java:2810)
at lucee.runtime.PageContextImpl._execute(PageContextImpl.java:2797)
at lucee.runtime.PageContextImpl.executeCFML(PageContextImpl.java:2768)
at lucee.runtime.engine.Request.exe(Request.java:45)
at lucee.runtime.engine.CFMLEngineImpl._service(CFMLEngineImpl.java:1109)
at lucee.runtime.engine.CFMLEngineImpl.serviceCFML(CFMLEngineImpl.java:1066)
at lucee.loader.engine.CFMLEngineWrapper.serviceCFML(CFMLEngineWrapper.java:97)
at lucee.loader.servlet.jakarta.CFMLServlet.service(CFMLServlet.java:52)
at jakarta.servlet.http.HttpServlet.service(HttpServlet.java:710)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:130)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:109)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:167)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:79)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:483)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:116)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:93)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:74)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343)
at org.apache.coyote.ajp.AjpProcessor.service(AjpProcessor.java:420)
at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:63)
at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:903)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1744)
at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:52)
at org.apache.tomcat.util.threads.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at org.apache.tomcat.util.threads.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:637)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:59)
at java.base/java.lang.Thread.run(Unknown Source)
27: <cfquery name="sections" datasource="#datasrc#">
28: select * from pageSections where pageId = #page.pageId# and isActive = 1 order by pageSortOrder;
29: </cfquery>
30: <cfif isdefined("showPreviewContent") and showPreviewContent and isdefined("url.hid") and url.hid GT 0>
31: <!--- We want to preview a old history content piece --->