I want to delete three rows, from three separate tables. Here is my query, but it doesnt seem to work.
CREATE PROCEDURE `DB`.`deleteArticle` (IN x INT)
BEGIN
DELETE FROM articles
where article_id=x;
DELETE FROM AUTHORS
where submission_id = select submission_id from article_files where article_id=X;
DELETE FROM article_files
where article_id=X;
END