function getPlayersPlayingCount($lobbyLogin)
	{
		return $this->db->execute(
				'SELECT COUNT(*) '.
				'FROM Players P '.
				'INNER JOIN Matches M ON P.matchId = M.id '.
				'INNER JOIN MatchServers MS ON MS.matchId = M.id '.
				'WHERE M.`state` >= %d AND P.state >= %d '.
				'AND MS.lobbyLogin = %s',
				Match::PREPARED, PlayerInfo::PLAYER_STATE_CONNECTED,
				$this->db->quote($lobbyLogin)
			)->fetchSingleValue(0);
	}