A PHP Error was encountered

Severity: Notice

Message: Trying to get property of non-object

Filename: controllers/Projetos.php

Line Number: 45

Backtrace:

File: /var/www/html/garten.com.br/web/application/controllers/Projetos.php
Line: 45
Function: _error_handler

File: /var/www/html/garten.com.br/web/index.php
Line: 315
Function: require_once

A PHP Error was encountered

Severity: Notice

Message: Undefined offset: 0

Filename: models/Projetos_model.php

Line Number: 73

Backtrace:

File: /var/www/html/garten.com.br/web/application/models/Projetos_model.php
Line: 73
Function: _error_handler

File: /var/www/html/garten.com.br/web/application/controllers/Projetos.php
Line: 45
Function: get_principal

File: /var/www/html/garten.com.br/web/index.php
Line: 315
Function: require_once

A PHP Error was encountered

Severity: Notice

Message: Trying to get property of non-object

Filename: controllers/Projetos.php

Line Number: 45

Backtrace:

File: /var/www/html/garten.com.br/web/application/controllers/Projetos.php
Line: 45
Function: _error_handler

File: /var/www/html/garten.com.br/web/index.php
Line: 315
Function: require_once

A PHP Error was encountered

Severity: Warning

Message: Attempt to assign property of non-object

Filename: controllers/Projetos.php

Line Number: 45

Backtrace:

File: /var/www/html/garten.com.br/web/application/controllers/Projetos.php
Line: 45
Function: _error_handler

File: /var/www/html/garten.com.br/web/index.php
Line: 315
Function: require_once

A PHP Error was encountered

Severity: Notice

Message: Trying to get property of non-object

Filename: controllers/Projetos.php

Line Number: 46

Backtrace:

File: /var/www/html/garten.com.br/web/application/controllers/Projetos.php
Line: 46
Function: _error_handler

File: /var/www/html/garten.com.br/web/index.php
Line: 315
Function: require_once

A PHP Error was encountered

Severity: Warning

Message: Attempt to assign property of non-object

Filename: controllers/Projetos.php

Line Number: 46

Backtrace:

File: /var/www/html/garten.com.br/web/application/controllers/Projetos.php
Line: 46
Function: _error_handler

File: /var/www/html/garten.com.br/web/index.php
Line: 315
Function: require_once

A PHP Error was encountered

Severity: Notice

Message: Trying to get property of non-object

Filename: controllers/Projetos.php

Line Number: 47

Backtrace:

File: /var/www/html/garten.com.br/web/application/controllers/Projetos.php
Line: 47
Function: _error_handler

File: /var/www/html/garten.com.br/web/index.php
Line: 315
Function: require_once

A PHP Error was encountered

Severity: Warning

Message: Cannot modify header information - headers already sent by (output started at /var/www/html/garten.com.br/web/system/core/Exceptions.php:271)

Filename: core/Common.php

Line Number: 570

Backtrace:

File: /var/www/html/garten.com.br/web/application/models/Projetos_model.php
Line: 95
Function: query

File: /var/www/html/garten.com.br/web/application/controllers/Projetos.php
Line: 48
Function: get_adjacentes

File: /var/www/html/garten.com.br/web/index.php
Line: 315
Function: require_once

Database Error

A Database Error Occurred

Error Number: 1064

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'UNION ALL (SELECT * FROM projeto WHERE id < ORDER BY id D' at line 2

SELECT * FROM projeto WHERE id = UNION ALL (SELECT * FROM projeto WHERE id < ORDER BY id DESC LIMIT 1) UNION ALL (SELECT * FROM projeto WHERE id > ORDER BY id ASC LIMIT 1);

Filename: models/Projetos_model.php

Line Number: 95