A PHP Error was encountered

Severity: Notice

Message: Trying to get property of non-object

Filename: controllers/Producto.php

Line Number: 164

Backtrace:

File: /home/surtifru/public_html/application/modules/producto/controllers/Producto.php
Line: 164
Function: _error_handler

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

Filename: core/Common.php

Line Number: 570

Backtrace:

File: /home/surtifru/public_html/application/modules/producto/models/Producto_model.php
Line: 112
Function: query

File: /home/surtifru/public_html/application/modules/producto/controllers/Producto.php
Line: 216
Function: read_vr_producto

File: /home/surtifru/public_html/application/modules/producto/controllers/Producto.php
Line: 164
Function: ver_valor_producto

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

Database Error

Se produjo un error en la base de datos

Error Number: 42000/1064

You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'ORDER BY precio_producto_id DESC LIMIT 1' at line 1

SELECT vr_producto FROM h_precios_productos WHERE producto_id = ORDER BY precio_producto_id DESC LIMIT 1

Filename: modules/producto/models/Producto_model.php

Line Number: 112