A PHP Error was encountered

Severity: Notice

Message: Undefined variable: fieldlang

Filename: models/Inventario_model.php

Line Number: 132

Backtrace:

File: /var/www/vhosts/lahoguera.es/httpdocs/application/models/Inventario_model.php
Line: 132
Function: _error_handler

File: /var/www/vhosts/lahoguera.es/httpdocs/application/models/Inventario_model.php
Line: 86
Function: lang

File: /var/www/vhosts/lahoguera.es/httpdocs/application/controllers/Productos.php
Line: 101
Function: getProductsByTipo

File: /var/www/vhosts/lahoguera.es/httpdocs/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 MariaDB server version for the right syntax to use near '= 'paleta' ORDER BY `inventario`.`nombre` ASC' at line 6

SELECT * FROM `inventario` JOIN `marca` ON `marca`.`categoria_id` = `inventario`.`marca_id` JOIN `tipoproducto` ON `tipoproducto`.`tipoproducto_id` = `inventario`.`tipoproducto_id` WHERE `aprobado` = 1 AND = 'paleta' ORDER BY `inventario`.`nombre` ASC

Filename: models/Inventario_model.php

Line Number: 87