Just mentioning to cover all the bases: you'll want to make sure you're using the correct multi-value YAML syntax in your front-matter when you include multiple authors (eg. single line or multi line array). I like using the Linter plugin to help me out with this.
# single-line array
author: [Sam Jones, Mary Apple]
# multi-line array
author:
- Sam Jones
- Mary Apple
Once you have something like the above, using flatten should enable returning results for either author; with one test file in my vault, this worked for me:
TABLE WITHOUT ID
link(file.link, title) as "Title", author FROM #books FLATTEN author WHERE author = "Sam Jones"