public function list_revisions() { $sql = <<<LIST_REVISIONS SELECT DISTINCT change_date, user_id FROM {revisions} WHERE post_id = :post_id; LIST_REVISIONS; return DB::get_keyvalue($sql, array('post_id' => $this->id)); }