Database error: Invalid SQL: SELECT id, nombre, IF(anterior=-1,0,anterior) as anterior FROM seccion WHERE id=;
MySQL Error: 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 '' at line 3)
Session halted.