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.genus,bold_data.species,COUNT(DISTINCT AS result_count,, bold_data.citation, bold_data.common_name FROM bold_data, birds_campaigns, WHERE AND AND bold_data.genus IS NOT NULL AND bold_data.genus <> '' AND AND bold_data.order_name = 'galliformes' GROUP BY bold_data.genus,bold_data.species