[models] Fixed the get_n_events

.limit() on a query that was already buily from a .from_query()
method is illegal.