Sql queries returning nothing

Hi,
I tested the script and the results were pretty useful,. Thanks !
I noticed that some sql queries were returning nothing from the script but there were results when executing them manually.
For example, from the drupal_audit_report.txt 

Tables that are not using utf8_general_ci:
Tables with more than 1 000 rows:

i fixed the script locally replacing \"$DB_NAME\" by  \"`echo $DB_NAME`\"

Thanks again !