As Jos says, I doubt that SQL will run so you ought to be getting an exception. Where it's going (are you logging to a file?) I have no idea.

ETA: Oh yes, and this is one of the reasons for keeping display logic separate from db logic.
Make a DAO (Data Access Object) that gets the data you want from the db and creates a List of a suitable class which it returns.
The display can then show the data based on this list and not care where it comes from.
In addition you'll be able to test the db logic in isolation since it won't care what's done with that data.