This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
That's odd - somehow an extra ')' seems to get appended to the query. But it's anyway odd since the query has single quotes around the '3' - which your code doesn't add, assuming that what you posted is precisely what gets run.