$q = $this->createQuery('bp')
   -> where.....