An Error Was Encountered

Error Number: 1064

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '.net.au WHERE bold_data.id=mail.iinet.net.au.taxa_key AND birds_campaigns.id=mai' at line 1

SELECT bold_data.class,bold_data.order_name,COUNT(DISTINCT bold_data.id) AS result_count, bold_data.id, bold_data.citation, bold_data.common_name FROM bold_data, birds_campaigns, mail.iinet.net.au WHERE bold_data.id=mail.iinet.net.au.taxa_key AND birds_campaigns.id=mail.iinet.net.au.campaign_key AND bold_data.class IS NOT NULL AND bold_data.class <> '' AND birds_campaigns.id=8 GROUP BY bold_data.class,bold_data.order_name