Can someone help me understand what’s wrong with this query:
DELETE FROM noteproject
INNER JOIN note ON noteproject.noteID = note.noteID
INNER JOIN person ON note.personID = person.personID
WHERE noteID = '#attributes.noteID#'
AND personID = '#attributes.personID#'
The reason why what you are trying to use doesn’t work, is because MySQL doesn’t support join syntax in the delete statement in the manner you tried.
Use:
…or using EXISTS: