ERROR AL INTENTAR RECUPERAR SUB-ELEMENTOSSELECT codigoElemento FROM elementos WHERE codigoElemento = AND nivelsup != 0 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 nivelsup != 0' at line 1