Notice: Trying to get property 'idproducto' of non-object in /var/www/ppsa/data/www/elmar.es/catalogo-productos-congelados/controllers/front/producto.php on line 21
Fatal error: Uncaught PDOException: SQLSTATE[42000]: Syntax error or access violation: 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 'AND trazas = 0
ORDER BY nombre ASC' at line 4 in /var/www/ppsa/data/www/elmar.es/catalogo-productos-congelados/classes/Class.Alergenos.php:80
Stack trace:
#0 /var/www/ppsa/data/www/elmar.es/catalogo-productos-congelados/classes/Class.Alergenos.php(80): PDO->prepare('SELECT *\n ...')
#1 /var/www/ppsa/data/www/elmar.es/catalogo-productos-congelados/controllers/front/producto.php(24): Alergenos->getAlergenos(NULL)
#2 /var/www/ppsa/data/www/elmar.es/catalogo-productos-congelados/index.php(76): require_once('/var/www/ppsa/d...')
#3 {main}
thrown in /var/www/ppsa/data/www/elmar.es/catalogo-productos-congelados/classes/Class.Alergenos.php on line 80