```php
public function findByFeeds($feeds, $offsetStart = null, $perPage = null)
{
    $qb = $this->createQueryBuilder('f');

    if (!empty($feeds)) {
        $qb->Where($qb->expr()->in('f.feed', $feeds)); // $feeds must be an array of ids
    }

    $qb->orderBy('f.updated_on', 'DESC');

    if ($offsetStart) {
        $qb->setFirstResult(max(0, (int) $offsetStart));
    }

    if ($perPage) {
        $qb->setMaxResults(max(5, (int) $perPage));
    }

    return $qb->getQuery()->getResult();
}
```