functions_mysqli l. 53: La consulta falló: 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 'where r.ELECCIO = 'A' and CODI = '2012-25N' and NIVELL ='DM' and r.CODI_DISTR...' at line 1