Notice: Trying to get property 'idproducto' of non-object in /var/www/ppsa/data/www/ 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/ Stack trace: #0 /var/www/ppsa/data/www/ PDO->prepare('SELECT *\n ...') #1 /var/www/ppsa/data/www/ Alergenos->getAlergenos(NULL) #2 /var/www/ppsa/data/www/ require_once('/var/www/ppsa/d...') #3 {main} thrown in /var/www/ppsa/data/www/ on line 80