WordPress database error: [User 'wh2zwnm5_admin' has exceeded the 'max_questions' resource (current value: 1)]SELECT SQL_CALC_FOUND_ROWS ms_posts.ID, CAST( orderby_event_date_meta.meta_value AS DATETIME ) AS event_date
FROM ms_posts LEFT JOIN ms_term_relationships ON (ms_posts.ID = ms_term_relationships.object_id) INNER JOIN ms_postmeta ON ( ms_posts.ID = ms_postmeta.post_id )
LEFT JOIN ms_postmeta AS orderby_event_date_meta
ON (
orderby_event_date_meta.post_id = ms_posts.ID
AND orderby_event_date_meta.meta_key = '_EventStartDate'
)
WHERE 1=1 AND (
ms_term_relationships.term_taxonomy_id IN (657)
) AND (
( ms_postmeta.meta_key = '_EventStartDate' AND CAST(ms_postmeta.meta_value AS DATETIME) > '2020-03-17 23:59:59' )
) AND ms_posts.post_type = 'tribe_events' AND ((ms_posts.post_status = 'publish'))
GROUP BY ms_posts.ID
ORDER BY event_date ASC, ms_posts.post_date ASC
LIMIT 0, 1
WordPress database error: [User 'wh2zwnm5_admin' has exceeded the 'max_questions' resource (current value: 1)]SELECT SQL_CALC_FOUND_ROWS ms_posts.ID, CAST( orderby_event_date_meta.meta_value AS DATETIME ) AS event_date
FROM ms_posts LEFT JOIN ms_term_relationships ON (ms_posts.ID = ms_term_relationships.object_id) INNER JOIN ms_postmeta ON ( ms_posts.ID = ms_postmeta.post_id )
LEFT JOIN ms_postmeta AS orderby_event_date_meta
ON (
orderby_event_date_meta.post_id = ms_posts.ID
AND orderby_event_date_meta.meta_key = '_EventStartDate'
)
WHERE 1=1 AND (
ms_term_relationships.term_taxonomy_id IN (657)
) AND (
( ms_postmeta.meta_key = '_EventStartDate' AND CAST(ms_postmeta.meta_value AS DATETIME) < '2020-03-17 00:00:00' )
) AND ms_posts.post_type = 'tribe_events' AND ((ms_posts.post_status = 'publish'))
GROUP BY ms_posts.ID
ORDER BY event_date DESC, ms_posts.post_date DESC
LIMIT 0, 1