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 'union SELECT s1.Id, s1.titulo, s1.secao, s1.importancia, 'Id' as classe, s1.' at line 4