public static ArrayList<QuizTakenRecord> getQuizHistoryByQuizIDUserID(int quizID, int userID) {
		ArrayList<QuizTakenRecord> records = new ArrayList<QuizTakenRecord>();
		String statement = new String("SELECT * FROM " + DBTable + " WHERE qid = ? AND userid = ?");
		PreparedStatement stmt;
		try {
			stmt = DBConnection.con.prepareStatement(statement);
			stmt.setInt(1, quizID);
			stmt.setInt(2, userID);
			ResultSet rs = stmt.executeQuery();
			while (rs.next()) {
				User user = User.getUserByUserID(rs.getInt("userid"));
				Quiz quiz = Quiz.getQuizByQuizID(rs.getInt("qid"));
				QuizTakenRecord record = new QuizTakenRecord(rs.getInt("id"), quiz,
						user, rs.getLong("timespan"), rs.getDouble("score"), rs.getTimestamp("time"),
						rs.getBoolean("isfeedback"), rs.getBoolean("ispractice"));
				records.add(record);
			}
			rs.close();
			Collections.sort(records, new RecordSortByTime());
			return records;
		} catch (SQLException e) {
			e.printStackTrace();
		}
		return null;
	}