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 r.CODI = '2017-21D' and r.NIVELL ='ME' and r.CODI_D...' at line 1