SELECT wp_posts.*
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_posts.ID NOT IN (175) AND (
wp_postmeta.meta_key = 'starts'
AND
( mt1.meta_key = 'starts' AND mt1.meta_value >= '2024-12-06 19:21:18' )
) AND wp_posts.post_type = 'event' AND ((wp_posts.post_status = 'publish'))
GROUP BY wp_posts.ID
ORDER BY wp_postmeta.meta_value DESC