Must escape the backquotes in the mysql command, since the shell will interpret them first.