Here You've written if(loRS.next()) that increase the Resultset to the next elements.Since there is only 1 element and after performing operation loRS.next it has left with nothing. Try this
boolean b = loRS.next()
if(b){
System.out.println("Do something with the value");
}else{
System.out.println("No row in the result set");
}
Thanks