public function getUser(int $id, string $username, string $email): ? User {

		$stmt = $this->db->prepare(
			"SELECT id, username, email, pw_hash, confirmation " .
			"FROM accounts " .
			"WHERE id=? " .
			"OR username=? " .
			"OR email=?;"
		);

		$stmt->bind_param("iss", $id, $username, $email);
		$stmt->execute();
		$result = $stmt->get_result();

		if ($result->num_rows !== 1) { // No result found
			return null;
		} else {
			$values = $result->fetch_array(MYSQLI_ASSOC);
			return new User(
				$this->db,
				(int)$values["id"],
				(string)$values["username"],
				(string)$values["email"],
				(string)$values["pw_hash"],
				(string)$values["confirmation"]);
		}
	}