WordPress database error: [Incorrect DATETIME value: '0000-00-00 00:00:00']
SELECT DISTINCT YEAR(post_date) AS `year`, MONTH(post_date) AS `month`, count(ID) as posts FROM wp_posts WHERE post_date < '2024-03-19 06:29:05' AND post_date != '0000-00-00 00:00:00' AND post_status = 'publish' GROUP BY YEAR(post_date), MONTH(post_date) ORDER BY post_date DESC

Enllaços

    WordPress database error: [Expression #1 of ORDER BY clause is not in SELECT list, references column 'qagm390.wp_linkcategories.cat_id' which is not in SELECT list; this is incompatible with DISTINCT]
    SELECT DISTINCT link_category, cat_name, show_images, show_description, show_rating, show_updated, sort_order, sort_desc, list_limit FROM `wp_links` LEFT JOIN `wp_linkcategories` ON (link_category = cat_id) WHERE link_visible = 'Y' AND list_limit <> 0 ORDER BY cat_id