A PHP Error was encountered

Severity: Notice

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

Filename: models/Producto_model.php

Line Number: 188

Backtrace:

File: /home/td000491/public_html/application/models/Producto_model.php
Line: 188
Function: _error_handler

File: /home/td000491/public_html/application/controllers/Productos.php
Line: 53
Function: similares

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

A PHP Error was encountered

Severity: Notice

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

Filename: models/Producto_model.php

Line Number: 191

Backtrace:

File: /home/td000491/public_html/application/models/Producto_model.php
Line: 191
Function: _error_handler

File: /home/td000491/public_html/application/controllers/Productos.php
Line: 53
Function: similares

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

Filename: core/Common.php

Line Number: 570

Backtrace:

File: /home/td000491/public_html/application/models/Producto_model.php
Line: 202
Function: query

File: /home/td000491/public_html/application/controllers/Productos.php
Line: 53
Function: similares

File: /home/td000491/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 lower(p.descripcion) like '%%' order by rand() LIMIT 0,3' at line 1

SELECT p.* from producto p where p.activo = true and p.idproducto != and lower(p.descripcion) like '%%' order by rand() LIMIT 0,3

Filename: models/Producto_model.php

Line Number: 202