A PHP Error was encountered

Severity: Notice

Message: Undefined offset: 0

Filename: controllers/Produtos.php

Line Number: 263

Backtrace:

File: /home/storage/d/d0/69/herbalalchemy2/public_html/application/controllers/Produtos.php
Line: 263
Function: _error_handler

File: /home/storage/d/d0/69/herbalalchemy2/public_html/index.php
Line: 315
Function: require_once

A PHP Error was encountered

Severity: Notice

Message: Trying to get property 'id_produto' of non-object

Filename: controllers/Produtos.php

Line Number: 263

Backtrace:

File: /home/storage/d/d0/69/herbalalchemy2/public_html/application/controllers/Produtos.php
Line: 263
Function: _error_handler

File: /home/storage/d/d0/69/herbalalchemy2/public_html/index.php
Line: 315
Function: require_once

A PHP Error was encountered

Severity: Notice

Message: Undefined offset: 0

Filename: controllers/Produtos.php

Line Number: 264

Backtrace:

File: /home/storage/d/d0/69/herbalalchemy2/public_html/application/controllers/Produtos.php
Line: 264
Function: _error_handler

File: /home/storage/d/d0/69/herbalalchemy2/public_html/index.php
Line: 315
Function: require_once

A PHP Error was encountered

Severity: Notice

Message: Trying to get property 'id_produto' of non-object

Filename: controllers/Produtos.php

Line Number: 264

Backtrace:

File: /home/storage/d/d0/69/herbalalchemy2/public_html/application/controllers/Produtos.php
Line: 264
Function: _error_handler

File: /home/storage/d/d0/69/herbalalchemy2/public_html/index.php
Line: 315
Function: require_once

A PHP Error was encountered

Severity: Notice

Message: Undefined offset: 0

Filename: controllers/Produtos.php

Line Number: 265

Backtrace:

File: /home/storage/d/d0/69/herbalalchemy2/public_html/application/controllers/Produtos.php
Line: 265
Function: _error_handler

File: /home/storage/d/d0/69/herbalalchemy2/public_html/index.php
Line: 315
Function: require_once

A PHP Error was encountered

Severity: Notice

Message: Trying to get property 'id_produto' of non-object

Filename: controllers/Produtos.php

Line Number: 265

Backtrace:

File: /home/storage/d/d0/69/herbalalchemy2/public_html/application/controllers/Produtos.php
Line: 265
Function: _error_handler

File: /home/storage/d/d0/69/herbalalchemy2/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/storage/d/d0/69/herbalalchemy2/public_html/system/core/Exceptions.php:271)

Filename: core/Common.php

Line Number: 564

Backtrace:

File: /home/storage/d/d0/69/herbalalchemy2/public_html/application/models/Produtos_model.php
Line: 350
Function: query

File: /home/storage/d/d0/69/herbalalchemy2/public_html/application/controllers/Produtos.php
Line: 265
Function: relacionados_lista_auto

File: /home/storage/d/d0/69/herbalalchemy2/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 ') AND produtos.id_produto <> AND produtos_imagens.principal = '' at line 5

SELECT produtos.id_produto,nome,imagem,categoria_sub FROM produtos LEFT JOIN categorias_sub ON produtos.id_categoria_sub = categorias_sub.id_categoria_sub LEFT JOIN produtos_imagens ON produtos.id_produto = produtos_imagens.id_produto WHERE produtos.id_categoria_sub = (SELECT produtos.id_categoria_sub FROM produtos WHERE id_produto = ) AND produtos.id_produto <> AND produtos_imagens.principal = 'SIM' ORDER BY RAND() LIMIT 4

Filename: models/Produtos_model.php

Line Number: 350