ERROR: Unable to execute query

SELECT DISTINCT *,count(group_video_video_id) AS `total` FROM
               `group_videos` AS gv,
               `groups` AS g WHERE
                gv.group_video_group_id=g.group_id
                GROUP BY gv.group_video_group_id
                ORDER BY `total` DESC

Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'filmesg_tb.gv.AID' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by