A PHP Error was encountered

Severity: Notice

Message: Trying to get property of non-object

Filename: controllers/Site.php

Line Number: 67

Backtrace:

File: /home/topempresascom/public_html/application/controllers/Site.php
Line: 67
Function: _error_handler

File: /home/topempresascom/public_html/index.php
Line: 315
Function: require_once

A PHP Error was encountered

Severity: Notice

Message: Trying to get property of non-object

Filename: controllers/Site.php

Line Number: 219

Backtrace:

File: /home/topempresascom/public_html/application/controllers/Site.php
Line: 219
Function: _error_handler

File: /home/topempresascom/public_html/application/controllers/Site.php
Line: 73
Function: _getArigosCategoria

File: /home/topempresascom/public_html/index.php
Line: 315
Function: require_once

A PHP Error was encountered

Severity: Notice

Message: Trying to get property of non-object

Filename: controllers/Site.php

Line Number: 223

Backtrace:

File: /home/topempresascom/public_html/application/controllers/Site.php
Line: 223
Function: _error_handler

File: /home/topempresascom/public_html/application/controllers/Site.php
Line: 73
Function: _getArigosCategoria

File: /home/topempresascom/public_html/index.php
Line: 315
Function: require_once

A PHP Error was encountered

Severity: Notice

Message: Trying to get property of non-object

Filename: models/EmpresasModel.php

Line Number: 68

Backtrace:

File: /home/topempresascom/public_html/application/models/EmpresasModel.php
Line: 68
Function: _error_handler

File: /home/topempresascom/public_html/application/controllers/Site.php
Line: 77
Function: getEmpresasByCategorias

File: /home/topempresascom/public_html/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 /home/topempresascom/public_html/system/core/Exceptions.php:271)

Filename: core/Common.php

Line Number: 573

Backtrace:

File: /home/topempresascom/public_html/application/models/EmpresasModel.php
Line: 73
Function: get

File: /home/topempresascom/public_html/application/controllers/Site.php
Line: 77
Function: getEmpresasByCategorias

File: /home/topempresascom/public_html/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 ' empresa_id_categoria) ORDER BY `empresa_nome` ASC' at line 4

SELECT * FROM `gns_empresas` LEFT JOIN `gns_categorias` ON `gns_categorias`.`categoria_id` = `gns_empresas`.`empresa_id_categoria` WHERE FIND_IN_SET(, empresa_id_categoria) ORDER BY `empresa_nome` ASC

Filename: models/EmpresasModel.php

Line Number: 73