WordPress database error: [Not unique table/alias: 'wpsk_tec_occurrences']SELECT SQL_CALC_FOUND_ROWS (wpsk_tec_occurrences.occurrence_id + 10000000) as occurrence_id
FROM wpsk_posts INNER JOIN wpsk_tec_occurrences ON wpsk_posts.ID = wpsk_tec_occurrences.post_id JOIN wpsk_icl_translations wpml_translations
ON wpsk_posts.ID = wpml_translations.element_id
AND wpml_translations.element_type = CONCAT('post_', wpsk_posts.post_type)
LEFT JOIN wpsk_tec_series_relationships ON wpsk_tec_series_relationships.event_post_id = wpsk_posts.ID
JOIN wpsk_tec_occurrences ON wpsk_posts.ID = wpsk_tec_occurrences.post_id
WHERE 1=1 AND (
CAST(wpsk_tec_occurrences.end_date AS DATETIME) < '2024-05-04 12:46:30'
) AND wpsk_posts.post_type = 'tribe_events' AND ((wpsk_posts.post_status = 'publish')) AND ( ( ( wpml_translations.language_code = 'no' OR (
wpml_translations.language_code = 'no'
AND wpsk_posts.post_type IN ( 'product' )
AND ( (
( SELECT COUNT(element_id)
FROM wpsk_icl_translations
WHERE trid = wpml_translations.trid
AND language_code = 'no'
) = 0
) OR (
( SELECT COUNT(element_id)
FROM wpsk_icl_translations t2
JOIN wpsk_posts p ON p.id = t2.element_id
WHERE t2.trid = wpml_translations.trid
AND t2.language_code = 'no'
AND (
p.post_status = 'publish' OR p.post_status = 'private' OR
( p.post_type='attachment' AND p.post_status = 'inherit' )
)
) = 0 ) )
) ) AND wpsk_posts.post_type IN ('post','page','attachment','wp_block','wp_template','wp_template_part','wp_navigation','product','product_variation','tribe_venue','tribe_organizer','tribe_events' ) ) OR wpsk_posts.post_type NOT IN ('post','page','attachment','wp_block','wp_template','wp_template_part','wp_navigation','product','product_variation','tribe_venue','tribe_organizer','tribe_events' ) ) AND (wpsk_tec_series_relationships.series_post_id IN(10002331))
GROUP BY wpsk_tec_occurrences.occurrence_id
ORDER BY wpsk_posts.post_date ASC
LIMIT 0, 13
WordPress database error: [Not unique table/alias: 'wpsk_tec_occurrences']SELECT SQL_CALC_FOUND_ROWS (wpsk_tec_occurrences.occurrence_id + 10000000) as occurrence_id
FROM wpsk_posts INNER JOIN wpsk_tec_occurrences ON wpsk_posts.ID = wpsk_tec_occurrences.post_id JOIN wpsk_icl_translations wpml_translations
ON wpsk_posts.ID = wpml_translations.element_id
AND wpml_translations.element_type = CONCAT('post_', wpsk_posts.post_type)
LEFT JOIN wpsk_tec_series_relationships ON wpsk_tec_series_relationships.event_post_id = wpsk_posts.ID
JOIN wpsk_tec_occurrences ON wpsk_posts.ID = wpsk_tec_occurrences.post_id
WHERE 1=1 AND (
CAST(wpsk_tec_occurrences.end_date AS DATETIME) < '2024-05-04 12:46:30'
) AND wpsk_posts.post_type = 'tribe_events' AND ((wpsk_posts.post_status = 'publish')) AND ( ( ( wpml_translations.language_code = 'no' OR (
wpml_translations.language_code = 'no'
AND wpsk_posts.post_type IN ( 'product' )
AND ( (
( SELECT COUNT(element_id)
FROM wpsk_icl_translations
WHERE trid = wpml_translations.trid
AND language_code = 'no'
) = 0
) OR (
( SELECT COUNT(element_id)
FROM wpsk_icl_translations t2
JOIN wpsk_posts p ON p.id = t2.element_id
WHERE t2.trid = wpml_translations.trid
AND t2.language_code = 'no'
AND (
p.post_status = 'publish' OR p.post_status = 'private' OR
( p.post_type='attachment' AND p.post_status = 'inherit' )
)
) = 0 ) )
) ) AND wpsk_posts.post_type IN ('post','page','attachment','wp_block','wp_template','wp_template_part','wp_navigation','product','product_variation','tribe_venue','tribe_organizer','tribe_events' ) ) OR wpsk_posts.post_type NOT IN ('post','page','attachment','wp_block','wp_template','wp_template_part','wp_navigation','product','product_variation','tribe_venue','tribe_organizer','tribe_events' ) ) AND (wpsk_tec_series_relationships.series_post_id IN(10002331))
GROUP BY wpsk_tec_occurrences.occurrence_id
ORDER BY wpsk_posts.post_date ASC
LIMIT 0, 13