to send a php file, you need to compress it into a zip file and attach the zip.
when you are using a function like CONCAT_WS, you need to add an alias to refer to the result by. for example
CONCAT_WS(', ', Author.AuthorLN, Author.AuthorFN) AS AuthorLnFn
then to refer to the concatenated result, use:
<?php echo $row_WADADynListAuthor['AuthorLnFn']?>