Bad query on line :

select * from zoneinfo where type='CNAME' and pdns_name='temple.canadiens.com'

MySQL says:

No database selected

You may want to contact our system administrator.