A PHP Error was encountered

Severity: Warning

Message: Attempt to read property "RefBase" on null

Filename: controllers/Productos.php

Line Number: 335

Backtrace:

File: /home2/aristgom/public_html/pegasowatch/application/controllers/Productos.php
Line: 335
Function: _error_handler

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

Filename: core/Common.php

Line Number: 570

Backtrace:

File: /home2/aristgom/public_html/pegasowatch/application/models/Productos_model.php
Line: 1043
Function: get

File: /home2/aristgom/public_html/pegasowatch/application/controllers/Productos.php
Line: 335
Function: consulta_producto_anterior

File: /home2/aristgom/public_html/pegasowatch/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_ingles` AS `p` INNER JOIN `productos_idioma` AS `pi` ON `pi`.`CodProd`=`p`.`CodProd` INNER JOIN `precios_producto_ingles` 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: 1043