private ResultSet getLatestMusic( final String type, final String totalPropertyName ) throws SQLException {
PreparedStatement st = null;
final Properties p = getProperties();
final Database db = getDatabase();
final String sql = " select ar.id, ar.name, max(t.date_added) as mostRecent " +
" from tracks t " +
" inner join " +type+ "s ar " +
" on ar.id = t." +type+ "_id " +
" group by ar.id, ar.name " +
" order by mostRecent desc " +
" limit ? ";
st = db.prepare( sql );
st.setInt( 1, (int) p.get(totalPropertyName,10) );
return st.executeQuery();
}