A PHP Error was encountered

Severity: Warning

Message: Attempt to read property "RefBase" on null

Filename: controllers/Productos.php

Line Number: 270

Backtrace:

File: /home2/aristgom/public_html/compratucasiocom/application/controllers/Productos.php
Line: 270
Function: _error_handler

File: /home2/aristgom/public_html/compratucasiocom/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 /home2/aristgom/public_html/compratucasiocom/system/core/Exceptions.php:271)

Filename: core/Common.php

Line Number: 570

Backtrace:

File: /home2/aristgom/public_html/compratucasiocom/application/models/Productos_model.php
Line: 1097
Function: get

File: /home2/aristgom/public_html/compratucasiocom/application/controllers/Productos.php
Line: 270
Function: consulta_producto_anterior

File: /home2/aristgom/public_html/compratucasiocom/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 `pp`.`PrecioInternet` > 0 AND `p`.`CodInst` IN('') AND `p`.`Activo` = 'S' OR' at line 6

SELECT `p`.`CodigoAux` AS `CodProd` FROM `productos` AS `p` INNER JOIN `productos_idioma` AS `pi` ON `pi`.`CodProd`=`p`.`CodProd` INNER JOIN `precios_producto` AS `pp` ON `p`.`CodProd`=`pp`.`CodProd` WHERE `p`.`RefBase` < AND `pp`.`PrecioInternet` > 0 AND `p`.`CodInst` IN('') AND `p`.`Activo` = 'S' ORDER BY `p`.`CodProd` DESC LIMIT 1

Filename: models/Productos_model.php

Line Number: 1097