DELETE FROM posts
WHERE posts.id = :postid AND
      posts.authorid = :authorid
