Use orm repository for this query. $em->getRepository('Bundle:Entity')->findBy(array(), array('published' => 'DESC', $maxResults));