Error Occurred While Processing Request The web site you are accessing has experienced an unexpected error.
Please contact the website administrator.


The following information is meant for the website developer for debugging purposes.
Error Occurred While Processing Request

Error Executing Database Query.

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 MediaType = 'Photo' ORDER BY DisplayOrder ASC LIMIT 1' at line 1
 
The error occurred in /home/studio11prod/public_html/_RealEstate/filters/realtracs/index.cfm: line 39
Called from /home/studio11prod/public_html/_RealEstate/filters/index.cfm: line 6
Called from /home/studio11prod/public_html/_RealEstate/propertyinfo/index.cfm: line 1
Called from /home/studio11prod/public_html/_RealEstate/filters/realtracs/index.cfm: line 39
Called from /home/studio11prod/public_html/_RealEstate/filters/index.cfm: line 6
Called from /home/studio11prod/public_html/_RealEstate/propertyinfo/index.cfm: line 1
37 : <!--- ALL START --->
38 : <cfset UseDatabaseImages = 1>
39 : <cfquery name="getNotPrimaryImage" datasource="#getIDXDatabase.mlsIDXDatabase#">SELECT PhotoLowRes, PhotoHighRes, ID, MediaDescription FROM images WHERE Mlsnum = #getProperty.MlsNum# AND MediaType = 'Photo' ORDER BY DisplayOrder ASC LIMIT 1</cfquery>
40 : <cfif getNotPrimaryImage.RecordCount GT 0><cfset imgFile = '#REReplace(Trim(getNotPrimaryImage.PhotoLowRes), " ", "", "ALL")#'>
41 : <cfelse><!---  getProperty.PrimaryImage is not "" --->

SQLSTATE   42000
DATASOURCE   realtracsDATA
VENDORERRORCODE   1064
SQL   SELECT PhotoLowRes, PhotoHighRes, ID, MediaDescription FROM images WHERE Mlsnum = AND MediaType = 'Photo' ORDER BY DisplayOrder ASC LIMIT 1
Resources:

Browser   CCBot/2.0 (https://commoncrawl.org/faq/)
Remote Address   100.25.214.89
Referrer  
Date/Time   26-Jun-19 04:57 PM
Stack Trace
at cfindex2ecfm453902661.runPage(/home/studio11prod/public_html/_RealEstate/filters/realtracs/index.cfm:39) at cfindex2ecfm145954452.runPage(/home/studio11prod/public_html/_RealEstate/filters/index.cfm:6) at cfindex2ecfm1954307014.runPage(/home/studio11prod/public_html/_RealEstate/propertyinfo/index.cfm:1) at cfindex2ecfm453902661.runPage(/home/studio11prod/public_html/_RealEstate/filters/realtracs/index.cfm:39) at cfindex2ecfm145954452.runPage(/home/studio11prod/public_html/_RealEstate/filters/index.cfm:6) at cfindex2ecfm1954307014.runPage(/home/studio11prod/public_html/_RealEstate/propertyinfo/index.cfm:1)

com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: 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 MediaType = 'Photo' ORDER BY DisplayOrder ASC LIMIT 1' at line 1
	at sun.reflect.GeneratedConstructorAccessor178.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:404)
	at com.mysql.jdbc.Util.getInstance(Util.java:387)
	at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:939)
	at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3878)
	at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3814)
	at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:2478)
	at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2625)
	at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2547)
	at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2505)
	at com.mysql.jdbc.StatementImpl.executeInternal(StatementImpl.java:840)
	at com.mysql.jdbc.StatementImpl.execute(StatementImpl.java:928)
	at coldfusion.server.j2ee.sql.JRunStatement.execute(JRunStatement.java:359)
	at coldfusion.sql.Executive.executeQuery(Executive.java:1485)
	at coldfusion.sql.Executive.executeQuery(Executive.java:1235)
	at coldfusion.sql.Executive.executeQuery(Executive.java:1165)
	at coldfusion.sql.SqlImpl.execute(SqlImpl.java:406)
	at coldfusion.tagext.sql.QueryTag.executeQuery(QueryTag.java:1187)
	at coldfusion.tagext.sql.QueryTag.startQueryExecution(QueryTag.java:816)
	at coldfusion.tagext.sql.QueryTag.doEndTag(QueryTag.java:769)
	at cfindex2ecfm453902661.runPage(/home/studio11prod/public_html/_RealEstate/filters/realtracs/index.cfm:39)
	at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:247)
	at coldfusion.tagext.lang.IncludeTag.handlePageInvoke(IncludeTag.java:736)
	at coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:572)
	at coldfusion.runtime.CfJspPage._emptyTcfTag(CfJspPage.java:3011)
	at cfindex2ecfm145954452.runPage(/home/studio11prod/public_html/_RealEstate/filters/index.cfm:6)
	at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:247)
	at coldfusion.tagext.lang.IncludeTag.handlePageInvoke(IncludeTag.java:736)
	at coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:572)
	at coldfusion.runtime.CfJspPage._emptyTcfTag(CfJspPage.java:3011)
	at cfindex2ecfm1954307014.runPage(/home/studio11prod/public_html/_RealEstate/propertyinfo/index.cfm:1)
	at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:247)
	at coldfusion.tagext.lang.IncludeTag.handlePageInvoke(IncludeTag.java:736)
	at coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:572)
	at coldfusion.filter.CfincludeFilter.invoke(CfincludeFilter.java:65)
	at coldfusion.filter.IpFilter.invoke(IpFilter.java:45)
	at coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:495)
	at coldfusion.filter.RequestMonitorFilter.invoke(RequestMonitorFilter.java:42)
	at coldfusion.filter.MonitoringFilter.invoke(MonitoringFilter.java:40)
	at coldfusion.filter.PathFilter.invoke(PathFilter.java:153)
	at coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:94)
	at coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenceFilter.java:28)
	at coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:38)
	at coldfusion.filter.NoCacheFilter.invoke(NoCacheFilter.java:58)
	at coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:38)
	at coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22)
	at coldfusion.filter.CachingFilter.invoke(CachingFilter.java:62)
	at coldfusion.CfmServlet.service(CfmServlet.java:219)
	at coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:89)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
	at coldfusion.monitor.event.MonitoringServletFilter.doFilter(MonitoringServletFilter.java:42)
	at coldfusion.bootstrap.BootstrapFilter.doFilter(BootstrapFilter.java:46)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:219)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:110)
	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:494)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:169)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:458)
	at org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:196)
	at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:637)
	at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:316)
	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)