WordPress database error: [Incorrect DATE value: '242424-1111-2121']
SELECT SQL_CALC_FOUND_ROWS wp_posts.ID
FROM wp_posts INNER JOIN wp_postmeta ON ( wp_posts.ID = wp_postmeta.post_id ) INNER JOIN wp_postmeta AS mt1 ON ( wp_posts.ID = mt1.post_id )
WHERE 1=1 AND (
( wp_postmeta.meta_key = 'obituary_passed_away_date' AND CAST(wp_postmeta.meta_value AS DATE) >= '1900-01-01' )
AND
( mt1.meta_key = 'obituary_passed_away_date' AND CAST(mt1.meta_value AS DATE) <= '242424-1111-2121' )
) AND ((wp_posts.post_type = 'obituary' AND (wp_posts.post_status = 'publish' OR wp_posts.post_status = 'acf-disabled')))
GROUP BY wp_posts.ID
ORDER BY CAST(wp_postmeta.meta_value AS DATE) DESC
LIMIT 0, 21