public function decoratePublishedQuery(Event $event)
    {
        $query = $event->subject();
        
        // Join the PagesTable
        $query
            ->select(['Pages.id'])
            ->join([
                'Pages' => [
                    'table' => 'cms_pages',
                    'type' => 'LEFT',
                    'conditions' => [
                        'MenuItems.foreign_model = "Wasabi/Cms.Pages"',
                        'MenuItems.foreign_id = Pages.id',
                        'Pages.status' => Page::STATUS_PUBLISHED
                    ]
                ]
            ]);
    }