500 Servlet Exception

com.caucho.ejb.FinderExceptionWrapper: java.sql.SQLException: Syntax error
or access violation,  message from server: "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 '-1, 1' at line 1"
	at com.caucho.ejb.FinderExceptionWrapper.create(FinderExceptionWrapper.java:104)
	at _ejb.BbAlbum.BbAlbumBean__QPersist.ejbFindAtPosForSite(BbAlbumBean__QPersist.java:1308)
	at _ejb.BbAlbum.BbAlbumBean__EJB$LocalHome.findAtPosForSite(BbAlbumBean__EJB.java:538)
	at _jsp._recordings._album__jsp._jspService(/recordings/album.jsp:47)
	at com.caucho.jsp.JavaPage.service(JavaPage.java:75)
	at com.caucho.jsp.Page.pageservice(Page.java:571)
	at com.caucho.server.dispatch.PageFilterChain.doFilter(PageFilterChain.java:155)
	at com.caucho.server.webapp.WebAppFilterChain.doFilter(WebAppFilterChain.java:177)
	at com.caucho.server.dispatch.ServletInvocation.service(ServletInvocation.java:221)
	at com.caucho.server.hmux.HmuxRequest.handleRequest(HmuxRequest.java:392)
	at com.caucho.server.port.TcpConnection.run(TcpConnection.java:331)
	at com.caucho.util.ThreadPool.runTasks(ThreadPool.java:464)
	at com.caucho.util.ThreadPool.run(ThreadPool.java:408)
	at java.lang.Thread.run(Thread.java:662)
Root cause is:
java.sql.SQLException: Syntax error or access violation,  message from
server: "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 '-1, 1' at
line 1"
	at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:1977)
	at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1163)
	at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1272)
	at com.mysql.jdbc.Connection.execSQL(Connection.java:2236)
	at com.mysql.jdbc.PreparedStatement.executeQuery(PreparedStatement.java:1555)
	at com.mysql.jdbc.jdbc2.optional.PreparedStatementWrapper.executeQuery(PreparedStatementWrapper.java:681)
	at _ejb.BbAlbum.BbAlbumBean__QPersist.ejbFindAtPosForSite(BbAlbumBean__QPersist.java:1286)
	at _ejb.BbAlbum.BbAlbumBean__EJB$LocalHome.findAtPosForSite(BbAlbumBean__EJB.java:538)
	at _jsp._recordings._album__jsp._jspService(/recordings/album.jsp:47)
	at com.caucho.jsp.JavaPage.service(JavaPage.java:75)
	at com.caucho.jsp.Page.pageservice(Page.java:571)
	at com.caucho.server.dispatch.PageFilterChain.doFilter(PageFilterChain.java:155)
	at com.caucho.server.webapp.WebAppFilterChain.doFilter(WebAppFilterChain.java:177)
	at com.caucho.server.dispatch.ServletInvocation.service(ServletInvocation.java:221)
	at com.caucho.server.hmux.HmuxRequest.handleRequest(HmuxRequest.java:392)
	at com.caucho.server.port.TcpConnection.run(TcpConnection.java:331)
	at com.caucho.util.ThreadPool.runTasks(ThreadPool.java:464)
	at com.caucho.util.ThreadPool.run(ThreadPool.java:408)
	at java.lang.Thread.run(Thread.java:662)

Resin-3.0.8 (built Tue, 08 Jun 2004 02:25:40 PDT)