st.setTimestamp(1, new Timestamp(dateSince.getTime()));
st.setInt(2, maxCount);
rs = (ResultSet) st.executeQuery();
while (rs.next()) {
LastTopic topic = new LastTopic();
topic.setForumid(rs.getInt("fid"));
topic.setThreadid(rs.getInt("tid"));
topic.setLocked(rs.getInt("locked"));
topic.setSortby(rs.getInt("sortby"));
topic.setMessagesCount(rs.getLong("tot_mes"));
topic.setForumName(rs.getString("forumtitle"));
setRootMessage(topic, st2);
topics.add(topic);
}
} finally {
if (rs != null) {