Fixed PublicQuery.with_entities() to honor public condition (fixes #182)