Getting error while creating workflow

Error in query:

column “tabApplication.docstatus” must appear in the GROUP BY clause or be used in an aggregate function

LINE 1: select “app_workflow_state”, count(*) as count, “docstatus”,…

getting the same error !! Did you find a solution