not unique table/alias: ‘wp-tec_occurrences’
-
Please help! Apparently, this error has been going on for months. Our server resources have been max-ed out daily and I just discovered this. I have looked at the db and there is no other table named wp_tec_occurrences, then I ran the query myself in phpMyAdmin and it indeed throws the error. The querry and error is listed below from my error log.
MySQL said:?#1066 - Not unique table/alias: 'wp_tec_occurrences'
[25-Jun-2023 22:17:14 UTC] WordPress database error Not unique table/alias: ‘wp_tec_occurrences’ for query
SELECT SQL_CALC_FOUND_ROWS (wp_tec_occurrences.occurrence_id + 10000000) as occurrence_id
FROM wp_posts INNER JOIN wp_tec_occurrences ON wp_posts.ID = wp_tec_occurrences.post_id
LEFT JOIN wp_tec_series_relationships ON wp_tec_series_relationships.event_post_id = wp_posts.ID
JOIN wp_tec_occurrences ON wp_posts.ID = wp_tec_occurrences.post_id
WHERE 1=1 AND wp_posts.ID NOT IN (446) AND (
CAST(wp_tec_occurrences.end_date_utc AS DATETIME) < ‘2023-06-25 22:17:14’ ) AND wp_posts.post_type = ‘tribe_events’ AND ((wp_posts.post_status = ‘publish’)) AND (wp_tec_series_relationships.series_post_id IN(10000052)) GROUP BY wp_tec_occurrences.occurrence_id ORDER BY wp_posts.post_date ASC LIMIT 0, 11 made by require(‘wp-blog-header.php’), require_once(‘wp-includes/template-loader.php’), include(‘/plugins/the-events-calendar/src/views/v2/default-template.php’), Tribe\Events\Views\V2\Template_Bootstrap->get_view_html, Tribe\Events\Pro\Views\V2\Views\All_View->get_html, Tribe\Events\Views\V2\View->get_html, Tribe\Events\Views\V2\Views\List_View->setup_template_vars, Tribe\Events\Views\V2\View->setup_template_vars, Tribe\Events\Views\V2\Views\List_View->next_url, Tribe\Events\Views\V2\Views\List_View->get_upcoming_url, Tribe__Repository->count, WP_Query->get_posts, apply_filters_ref_array(‘posts_pre_query’), WP_Hook->apply_filters, TEC\Events\Custom_Tables\V1\WP_Query\Modifiers\Events_Only_Modifier->filter_posts_pre_query, TEC\Events\Custom_Tables\V1\WP_Query\Custom_Tables_Query->get_posts, WP_Query->get_postsThe page I need help with: [log in to see the link]
- The topic ‘not unique table/alias: ‘wp-tec_occurrences’’ is closed to new replies.