An Error Was Encountered

Error Number: 1054

Unknown column 'bold_data.class' in 'field list'

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 WHERE bold_data.id IS NOT NULL AND bold_data.class IS NOT NULL AND bold_data.class <> '' GROUP BY bold_data.class,bold_data.order_name