WordPress database error: [Expression #1 of ORDER BY clause is not in GROUP BY clause and contains nonaggregated column 'co709nap_wphome.wp_posts.post_modified_gmt' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by]
SELECT post_type, MAX(post_modified_gmt) AS date FROM wp_posts WHERE post_status IN ('publish','inherit') AND post_type IN ('post','page','attachment') GROUP BY post_type ORDER BY post_modified_gmt DESC