Limit message query.