WordPress database error: [Incorrect usage of ALL and DISTINCT]SELECT SQL_CALC_FOUND_ROWS DISTINCT all
FROM wp_posts
WHERE 1=1 AND (
(
wp_posts.ID NOT IN (
SELECT object_id
FROM wp_term_relationships
WHERE term_taxonomy_id IN (2,12,39)
)
AND
wp_posts.ID NOT IN (
SELECT object_id
FROM wp_term_relationships
WHERE term_taxonomy_id IN (73)
)
)
) AND ((wp_posts.post_type = 'post' AND (wp_posts.post_status = 'publish' OR wp_posts.post_status = 'expired' OR wp_posts.post_status = 'preview' OR wp_posts.post_status = 'refunded' OR wp_posts.post_status = 'failed' OR wp_posts.post_status = 'revoked' OR wp_posts.post_status = 'cancelled' OR wp_posts.post_status = 'abandoned' OR wp_posts.post_status = 'processing' OR wp_posts.post_status = 'preapproval'))) AND wp_posts.ID NOT IN (5199,2727,2653,2650,2533,2444,1844,1832,1656,1633,1627,1555,1489,1301,1294,1008,963,960,930,927,926,909,902,870,868,867,866,865,864,863,862,861,858,774,752,573,567,484,481,452,449,354,300,299,242,241,214,197,35)
ORDER BY wp_posts.post_date DESC
LIMIT 0, 10