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 ' WHERE AND' at line 1

SELECT bold_data.class,bold_data.order_name,COUNT(DISTINCT AS result_count,, bold_data.citation, bold_data.common_name FROM bold_data, birds_campaigns, WHERE AND AND bold_data.class IS NOT NULL AND bold_data.class <> '' AND GROUP BY bold_data.class,bold_data.order_name