public function pages($reload = false) { if ($reload or !$this->pages_cache) { $id = mysql_real_escape_string($this->id); $this->pages_cache = ArticlePage::find_all("articles.id = '{$id}'", "article_pages.position ASC"); } return $this->pages_cache; }