Notice (8): Undefined index: Premio [APP/Plugin/Premios/Controller/PremiosController.php, line 21]
Notice (8): Undefined index: Premio [APP/Plugin/Premios/Controller/PremiosController.php, line 22]
Notice (8): Undefined index: Premio [APP/Plugin/Premios/Controller/PremiosController.php, line 23]
Notice (8): Undefined index: Premio [APP/Plugin/Premios/Controller/PremiosController.php, line 29]
Notice (8): Undefined index: Premio [APP/Plugin/Premios/Controller/PremiosController.php, line 34]
CakePHP: the rapid development php framework: NBC Arquitetura

SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'sessao' cannot be null

Error: An Internal Error Has Occurred.

Stack Trace

(default) 38 queries took 157 ms
NrQueryErrorAffectedNum. rowsTook (ms)
1SELECT `SeoKeyword`.`id`, `SeoKeyword`.`keyword` FROM `nbcarquitetura_01`.`seo_keywords` AS `SeoKeyword` WHERE 1 = 1111
2SELECT `SeoConfig`.`id`, `SeoConfig`.`title`, `SeoConfig`.`author`, `SeoConfig`.`description`, `SeoConfig`.`analytics`, `SeoConfig`.`created`, `SeoConfig`.`modified` FROM `nbcarquitetura_01`.`seo_configs` AS `SeoConfig` WHERE 1 = 1 LIMIT 1111
3SELECT `Pagina`.`title`, `Pagina`.`slug`, `Pagina`.`id` FROM `nbcarquitetura_01`.`tb_paginas_historico` AS `Pagina` WHERE 1 = 1 ORDER BY `Pagina`.`order_registro` ASC, `Pagina`.`created` DESC441
4SELECT `Video`.`id`, `Video`.`reference_id`, `Video`.`title`, `Video`.`yid`, `Video`.`order`, `Video`.`created`, (CONCAT('https://img.youtube.com/vi/',yid,'/mqdefault.jpg')) AS `Video__default`, (CONCAT('https://www.youtube.com/watch?v=',yid)) AS `Video__link`, (CONCAT('https://www.youtube.com/embed/',yid)) AS `Video__embed` FROM `nbcarquitetura_01`.`pnn_videos` AS `Video` WHERE `Video`.`reference_id` IN ('5ee8fc90-74fc-4745-b13b-1d683e7806ff', '5ee8f949-9e24-4abd-bebd-1d683e7806ff', '5eeba26a-24c0-4822-ae56-462dc0b9d524', '5ee8fd81-9428-4616-9d17-1d683e7806ff') ORDER BY `Video`.`order` ASC001
5SELECT DISTINCT gallery FROM pnn_galleries WHERE reference_id='5ee8fc90-74fc-4745-b13b-1d683e7806ff'116
6SELECT `Gallery`.`id`, `Gallery`.`reference_id`, `Gallery`.`legend`, `Gallery`.`path`, `Gallery`.`gallery`, `Gallery`.`order`, `Gallery`.`created`, `Gallery`.`modified`, `Gallery`.`expires`, (CONCAT('/',path)) AS `Gallery__fullPath` FROM `nbcarquitetura_01`.`pnn_galleries` AS `Gallery` WHERE `reference_id` = '5ee8fc90-74fc-4745-b13b-1d683e7806ff' AND `gallery` = 'images' ORDER BY `Gallery`.`order` ASC, `Gallery`.`id` ASC335
7SELECT DISTINCT gallery FROM pnn_galleries WHERE reference_id='5ee8f949-9e24-4abd-bebd-1d683e7806ff'009
8SELECT DISTINCT gallery FROM pnn_galleries WHERE reference_id='5eeba26a-24c0-4822-ae56-462dc0b9d524'007
9SELECT DISTINCT gallery FROM pnn_galleries WHERE reference_id='5ee8fd81-9428-4616-9d17-1d683e7806ff'0018
10SELECT `CategoriaProjeto`.`title`, `CategoriaProjeto`.`slug` FROM `nbcarquitetura_01`.`tb_projetos_categoria` AS `CategoriaProjeto` WHERE 1 = 1 ORDER BY `CategoriaProjeto`.`order_registro` ASC, `CategoriaProjeto`.`created` DESC661
11SELECT `Premio`.`title`, `Premio`.`slug`, `Premio`.`id` FROM `nbcarquitetura_01`.`tb_premios` AS `Premio` WHERE 1 = 1 ORDER BY `Premio`.`order_registro` ASC, `Premio`.`created` DESC661
12SELECT `Video`.`id`, `Video`.`reference_id`, `Video`.`title`, `Video`.`yid`, `Video`.`order`, `Video`.`created`, (CONCAT('https://img.youtube.com/vi/',yid,'/mqdefault.jpg')) AS `Video__default`, (CONCAT('https://www.youtube.com/watch?v=',yid)) AS `Video__link`, (CONCAT('https://www.youtube.com/embed/',yid)) AS `Video__embed` FROM `nbcarquitetura_01`.`pnn_videos` AS `Video` WHERE `Video`.`reference_id` IN ('5f2ab80f-e0fc-4ace-bbf9-1c29bffc3d9f', '5f2ab7ce-0f98-4f91-aa2c-1b3cbffc3d9f', '5f2ab1b6-5764-4042-a796-0c58bffc3d9f', '5f2ab170-b770-43bc-bee9-0b61bffc3d9f', '5f2ab0d2-7f4c-45c5-95ff-09fdbffc3d9f', '5f2aa128-2718-463d-88e6-645abffc3d9f') ORDER BY `Video`.`order` ASC001
13SELECT DISTINCT gallery FROM pnn_galleries WHERE reference_id='5f2ab80f-e0fc-4ace-bbf9-1c29bffc3d9f'0010
14SELECT DISTINCT gallery FROM pnn_galleries WHERE reference_id='5f2ab7ce-0f98-4f91-aa2c-1b3cbffc3d9f'0011
15SELECT DISTINCT gallery FROM pnn_galleries WHERE reference_id='5f2ab1b6-5764-4042-a796-0c58bffc3d9f'006
16SELECT DISTINCT gallery FROM pnn_galleries WHERE reference_id='5f2ab170-b770-43bc-bee9-0b61bffc3d9f'006
17SELECT DISTINCT gallery FROM pnn_galleries WHERE reference_id='5f2ab0d2-7f4c-45c5-95ff-09fdbffc3d9f'007
18SELECT DISTINCT gallery FROM pnn_galleries WHERE reference_id='5f2aa128-2718-463d-88e6-645abffc3d9f'009
19SELECT `Numero`.`id`, `Numero`.`numero_projetos`, `Numero`.`m_projetos`, `Numero`.`obras_executadas`, `Numero`.`obras_execucao`, `Numero`.`created`, `Numero`.`modified`, (DATE_FORMAT(`Numero`.`created`,'%d/%m/%Y %H:%i')) AS `Numero__cdate`, (DATE_FORMAT(`Numero`.`modified`,'%d/%m/%Y %H:%i')) AS `Numero__mdate` FROM `nbcarquitetura_01`.`tb_numeros` AS `Numero` WHERE 1 = 1 LIMIT 1112
20SELECT `Video`.`id`, `Video`.`reference_id`, `Video`.`title`, `Video`.`yid`, `Video`.`order`, `Video`.`created`, (CONCAT('https://img.youtube.com/vi/',yid,'/mqdefault.jpg')) AS `Video__default`, (CONCAT('https://www.youtube.com/watch?v=',yid)) AS `Video__link`, (CONCAT('https://www.youtube.com/embed/',yid)) AS `Video__embed` FROM `nbcarquitetura_01`.`pnn_videos` AS `Video` WHERE `Video`.`reference_id` = ('5f11d701-2240-4095-b2c4-274c3e7806ff') ORDER BY `Video`.`order` ASC001
21SELECT DISTINCT gallery FROM pnn_galleries WHERE reference_id='5f11d701-2240-4095-b2c4-274c3e7806ff'0015
22SELECT `Premio`.`id`, `Premio`.`title`, `Premio`.`texto`, `Premio`.`imagem`, `Premio`.`slug`, `Premio`.`created`, `Premio`.`modified`, `Premio`.`order_registro`, (DATE_FORMAT(`Premio`.`created`,'%d/%m/%Y %H:%i')) AS `Premio__cdate`, (DATE_FORMAT(`Premio`.`modified`,'%d/%m/%Y %H:%i')) AS `Premio__mdate` FROM `nbcarquitetura_01`.`tb_premios` AS `Premio` WHERE `Premio`.`slug` = 'acic' LIMIT 1001
23SELECT `Premio`.`id`, `Premio`.`title`, `Premio`.`texto`, `Premio`.`imagem`, `Premio`.`slug`, `Premio`.`created`, `Premio`.`modified`, `Premio`.`order_registro`, (DATE_FORMAT(`Premio`.`created`,'%d/%m/%Y %H:%i')) AS `Premio__cdate`, (DATE_FORMAT(`Premio`.`modified`,'%d/%m/%Y %H:%i')) AS `Premio__mdate` FROM `nbcarquitetura_01`.`tb_premios` AS `Premio` WHERE `Premio`.`id` != "" ORDER BY RAND() ASC LIMIT 33317
24SELECT `Video`.`id`, `Video`.`reference_id`, `Video`.`title`, `Video`.`yid`, `Video`.`order`, `Video`.`created`, (CONCAT('https://img.youtube.com/vi/',yid,'/mqdefault.jpg')) AS `Video__default`, (CONCAT('https://www.youtube.com/watch?v=',yid)) AS `Video__link`, (CONCAT('https://www.youtube.com/embed/',yid)) AS `Video__embed` FROM `nbcarquitetura_01`.`pnn_videos` AS `Video` WHERE `Video`.`reference_id` IN ('5f2ab7ce-0f98-4f91-aa2c-1b3cbffc3d9f', '5f2aa128-2718-463d-88e6-645abffc3d9f', '5f2ab80f-e0fc-4ace-bbf9-1c29bffc3d9f') ORDER BY `Video`.`order` ASC001
25BEGIN001
26ROLLBACK001
27SELECT `SeoKeyword`.`id`, `SeoKeyword`.`keyword` FROM `nbcarquitetura_01`.`seo_keywords` AS `SeoKeyword` WHERE 1 = 1111
28SELECT `SeoConfig`.`id`, `SeoConfig`.`title`, `SeoConfig`.`author`, `SeoConfig`.`description`, `SeoConfig`.`analytics`, `SeoConfig`.`created`, `SeoConfig`.`modified` FROM `nbcarquitetura_01`.`seo_configs` AS `SeoConfig` WHERE 1 = 1 LIMIT 1111
29SELECT `Pagina`.`title`, `Pagina`.`slug`, `Pagina`.`id` FROM `nbcarquitetura_01`.`tb_paginas_historico` AS `Pagina` WHERE 1 = 1 ORDER BY `Pagina`.`order_registro` ASC, `Pagina`.`created` DESC441
30SELECT `Video`.`id`, `Video`.`reference_id`, `Video`.`title`, `Video`.`yid`, `Video`.`order`, `Video`.`created`, (CONCAT('https://img.youtube.com/vi/',yid,'/mqdefault.jpg')) AS `Video__default`, (CONCAT('https://www.youtube.com/watch?v=',yid)) AS `Video__link`, (CONCAT('https://www.youtube.com/embed/',yid)) AS `Video__embed` FROM `nbcarquitetura_01`.`pnn_videos` AS `Video` WHERE `Video`.`reference_id` IN ('5ee8fc90-74fc-4745-b13b-1d683e7806ff', '5ee8f949-9e24-4abd-bebd-1d683e7806ff', '5eeba26a-24c0-4822-ae56-462dc0b9d524', '5ee8fd81-9428-4616-9d17-1d683e7806ff') ORDER BY `Video`.`order` ASC001
31SELECT `Gallery`.`id`, `Gallery`.`reference_id`, `Gallery`.`legend`, `Gallery`.`path`, `Gallery`.`gallery`, `Gallery`.`order`, `Gallery`.`created`, `Gallery`.`modified`, `Gallery`.`expires`, (CONCAT('/',path)) AS `Gallery__fullPath` FROM `nbcarquitetura_01`.`pnn_galleries` AS `Gallery` WHERE `reference_id` = '5ee8fc90-74fc-4745-b13b-1d683e7806ff' AND `gallery` = 'images' ORDER BY `Gallery`.`order` ASC, `Gallery`.`id` ASC336
32SELECT `CategoriaProjeto`.`title`, `CategoriaProjeto`.`slug` FROM `nbcarquitetura_01`.`tb_projetos_categoria` AS `CategoriaProjeto` WHERE 1 = 1 ORDER BY `CategoriaProjeto`.`order_registro` ASC, `CategoriaProjeto`.`created` DESC661
33SELECT `Premio`.`title`, `Premio`.`slug`, `Premio`.`id` FROM `nbcarquitetura_01`.`tb_premios` AS `Premio` WHERE 1 = 1 ORDER BY `Premio`.`order_registro` ASC, `Premio`.`created` DESC661
34SELECT `Video`.`id`, `Video`.`reference_id`, `Video`.`title`, `Video`.`yid`, `Video`.`order`, `Video`.`created`, (CONCAT('https://img.youtube.com/vi/',yid,'/mqdefault.jpg')) AS `Video__default`, (CONCAT('https://www.youtube.com/watch?v=',yid)) AS `Video__link`, (CONCAT('https://www.youtube.com/embed/',yid)) AS `Video__embed` FROM `nbcarquitetura_01`.`pnn_videos` AS `Video` WHERE `Video`.`reference_id` IN ('5f2ab80f-e0fc-4ace-bbf9-1c29bffc3d9f', '5f2ab7ce-0f98-4f91-aa2c-1b3cbffc3d9f', '5f2ab1b6-5764-4042-a796-0c58bffc3d9f', '5f2ab170-b770-43bc-bee9-0b61bffc3d9f', '5f2ab0d2-7f4c-45c5-95ff-09fdbffc3d9f', '5f2aa128-2718-463d-88e6-645abffc3d9f') ORDER BY `Video`.`order` ASC001
35SELECT `Numero`.`id`, `Numero`.`numero_projetos`, `Numero`.`m_projetos`, `Numero`.`obras_executadas`, `Numero`.`obras_execucao`, `Numero`.`created`, `Numero`.`modified`, (DATE_FORMAT(`Numero`.`created`,'%d/%m/%Y %H:%i')) AS `Numero__cdate`, (DATE_FORMAT(`Numero`.`modified`,'%d/%m/%Y %H:%i')) AS `Numero__mdate` FROM `nbcarquitetura_01`.`tb_numeros` AS `Numero` WHERE 1 = 1 LIMIT 1111
36SELECT `Video`.`id`, `Video`.`reference_id`, `Video`.`title`, `Video`.`yid`, `Video`.`order`, `Video`.`created`, (CONCAT('https://img.youtube.com/vi/',yid,'/mqdefault.jpg')) AS `Video__default`, (CONCAT('https://www.youtube.com/watch?v=',yid)) AS `Video__link`, (CONCAT('https://www.youtube.com/embed/',yid)) AS `Video__embed` FROM `nbcarquitetura_01`.`pnn_videos` AS `Video` WHERE `Video`.`reference_id` = ('5f11d701-2240-4095-b2c4-274c3e7806ff') ORDER BY `Video`.`order` ASC001
37BEGIN001
38ROLLBACK001