WordPress database error: [Unknown column ‘date’ in ‘order clause’]
-
I’m stuck on what the cause and fix to this issue is.
I’m running WPML Plugin, Divi Events Calendar plugin, and The Events Calendar.
Divi Events said the issue is with The Events Calendar.
I’m getting am error appearing in the header of my public page where I have an event feed.
This is what the error says:
WordPress database error: [Unknown column 'date' in 'order clause'] SELECT wp_posts.* FROM wp_posts INNER JOIN wp_postmeta ON ( wp_posts.ID = wp_postmeta.post_id ) INNER JOIN wp_tec_occurrences ON wp_posts.ID = wp_tec_occurrences.post_id JOIN wp_icl_translations wpml_translations ON wp_posts.ID = wpml_translations.element_id AND wpml_translations.element_type = CONCAT('post_', wp_posts.post_type) WHERE 1=1 AND ( ( ( wp_postmeta.meta_key = '_tribe_events_status' AND wp_postmeta.meta_value = 'postponed' ) OR ( wp_postmeta.meta_key = '_tribe_events_status' AND wp_postmeta.meta_value = 'canceled' ) ) AND wp_tec_occurrences.post_id IS NOT NULL AND CAST(wp_tec_occurrences.end_date AS DATETIME) >= '2022-11-08 14:11:30' ) AND wp_posts.post_type = 'tribe_events' AND ((wp_posts.post_status = 'publish')) AND ( ( ( wpml_translations.language_code = 'en' OR ( wpml_translations.language_code = 'en' AND wp_posts.post_type IN ( 'project','tribe_organizer','tribe_events','et_header_layout','et_body_layout','et_footer_layout' ) AND ( ( ( SELECT COUNT(element_id) FROM wp_icl_translations WHERE trid = wpml_translations.trid AND language_code = 'en' ) = 0 ) OR ( ( SELECT COUNT(element_id) FROM wp_icl_translations t2 JOIN wp_posts p ON p.id = t2.element_id WHERE t2.trid = wpml_translations.trid AND t2.language_code = 'en' AND ( p.post_status = 'publish' OR p.post_type='attachment' AND p.post_status = 'inherit' ) ) = 0 ) ) ) ) AND wp_posts.post_type IN ('post','page','attachment','wp_block','wp_template','wp_template_part','wp_navigation','et_pb_layout','project','tribe_venue','tribe_organizer','tribe_events','et_header_layout','et_body_layout','et_footer_layout' ) ) OR wp_posts.post_type NOT IN ('post','page','attachment','wp_block','wp_template','wp_template_part','wp_navigation','et_pb_layout','project','tribe_venue','tribe_organizer','tribe_events','et_header_layout','et_body_layout','et_footer_layout' ) ) GROUP BY wp_tec_occurrences.occurrence_id ORDER BY date DESC, CAST(wp_tec_occurrences.start_date AS CHAR) ASC, post_date ASCThe page I need help with: [log in to see the link]
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
The topic ‘WordPress database error: [Unknown column ‘date’ in ‘order clause’]’ is closed to new replies.