Warning (512): SQL Error: 1054: Unknown column 'Page.public' in 'where clause' [CORE/cake/libs/model/datasources/dbo_source.php, line 685]

Query: SELECT COUNT(*) AS `count` FROM `pages` AS `Page` LEFT JOIN `sections` AS `Section` ON (`Page`.`section_id` = `Section`.`id`) LEFT JOIN `subdomains_pages` AS `SubdomainsPage` ON (`SubdomainsPage`.`subdomain_id` = 'www' AND `SubdomainsPage`.`page_id` = `Page`.`id`) WHERE `Page`.`public` = 1 AND `Page`.`section_id` = 8

Query: SELECT `Page`.`id`, `Page`.`section_id`, `Page`.`title`, `Page`.`slug`, `Page`.`created`, `Page`.`modified`, `Page`.`order`, `Section`.`id`, `Section`.`parent_id`, `Section`.`title`, `Section`.`slug`, `Section`.`type`, `Section`.`form`, `Section`.`email`, `Section`.`order`, `Section`.`menu`, `Section`.`counter`, `Section`.`lock`, `SubdomainsPage`.`id`, `SubdomainsPage`.`subdomain_id`, `SubdomainsPage`.`page_id`, `SubdomainsPage`.`header`, `SubdomainsPage`.`about`, `SubdomainsPage`.`text`, `SubdomainsPage`.`seo_title`, `SubdomainsPage`.`seo_keywords`, `SubdomainsPage`.`seo_description`, `SubdomainsPage`.`public` FROM `pages` AS `Page` LEFT JOIN `sections` AS `Section` ON (`Page`.`section_id` = `Section`.`id`) LEFT JOIN `subdomains_pages` AS `SubdomainsPage` ON (`SubdomainsPage`.`subdomain_id` = 'www' AND `SubdomainsPage`.`page_id` = `Page`.`id`) WHERE `Page`.`public` = 1 AND `Page`.`section_id` = 8 ORDER BY `Page`.`modified` desc LIMIT 10

Warning (2): Invalid argument supplied for foreach() [APP/app_model.php, line 88]
Новости | компания Евроворота