mysql – ERROR 1054 (42S22) at line 1: Unknown column ‘COMPLETEAGENT’ in ‘where clause’

Tengo el siguiente script y al ejecutarlo entiendo que hay un error de sintaxis o algo:

#!/bin/bash

fecha=$(date -d "last month" +"%Y-%m-%d %T.%N")
host="localhost"
usuario="root"
pass="1234"
database="sipmanager"
atendidas="SELECT event,COUNT(event) AS total FROM rt_queue_log WHERE event = 'COMPLETEAGENT' OR event = 'COMPLETCALLER' group by event;"
perdidas="SELECT event,COUNT(event) AS total FROM rt_queue_log WHERE event = 'ABANDON' OR event = 'RINGNOANSWER' group by event;"
total="SELECT event,count(event) as total from rt_queue_log WHERE event = 'COMPLETEAGENT' OR event = 'COMPLETECALLER' OR event = 'ABANDON' group by event;"
args_sql="-h $host -u $usuario -p$pass -D $database -s -e"
eval "mysql $args_sql '$atendidas'" >> /tmp/prueba.csv
eval "mysql $args_sql '$perdidas'" >> /tmp/prueba.csv
eval "mysql $args_sql '$total'" >> /tmp/prueba.csv
echo -e 'n' >> /tmp/prueba.csv

y me salta este ERROR:

ERROR 1054 (42S22) at line 1: Unknown column 'COMPLETEAGENT' in 'where clause'
ERROR 1054 (42S22) at line 1: Unknown column 'ABANDON' in 'where clause'
ERROR 1054 (42S22) at line 1: Unknown column 'COMPLETEAGENT' in 'where clause'

lo que quiero hacer con este script es sacar