title: Error on SQL query right syntax to use near '' at line 4
body: <p>i'm trying to create a trigger on my database but i'm getting this error "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 4 " but i can't understand why. This is the query:</p>
  
  <pre><code>CREATE TRIGGER cancella_associativa AFTER DELETE ON libro
      FOR EACH ROW
      BEGIN
          DELETE FROM annuncio_autore 
          WHERE libro.`idLibro` = annuncio_autore.`idAnnuncio`;
      END
  </code></pre>
  
  <p>Using phpMyAdmin, thanks in advance.</p>