Die nächsten Veranstaltungen

SELECT wp_posts.* FROM wp_posts LEFT JOIN wp_term_relationships ON (wp_posts.ID = wp_term_relationships.object_id) 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_term_relationships.term_taxonomy_id IN (137,153,154,155,156,158,159,160,161,162,163,171,172,173,180,181,182,183,184,185,188,189,191,192,193,194,195,196,197,198,199,200) ) AND ( ( wp_postmeta.meta_key = 'startdate' AND wp_postmeta.meta_value > '20170820' ) AND ( ( mt1.meta_key = '_visibility' AND mt1.meta_value IN ('visible','catalog') ) ) ) AND wp_posts.post_type = 'product' AND ((wp_posts.post_status = 'publish')) GROUP BY wp_posts.ID ORDER BY wp_postmeta.meta_value ASC