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 = 'stm_event_date_start'
AND
(
( mt1.meta_key = 'stm_event_date_start' AND mt1.meta_value LIKE '{deaa1eecec5574ac5d2e4c6c8733387d04688c7afd2b1d5883aeac5abab7d6c1}{deaa1eecec5574ac5d2e4c6c8733387d04688c7afd2b1d5883aeac5abab7d6c1}' )
)
) AND wp_posts.post_type IN ('cpt_11179', 'cpt_11500', 'post', 'stm_event') AND ((wp_posts.post_status = 'publish' OR wp_posts.post_status = 'inherit'))AND (wp_posts.post_type = 'stm_event' )
GROUP BY wp_posts.ID
ORDER BY wp_posts.menu_order, wp_posts.post_date DESC
LIMIT 0, 10