Accommodaties

WordPress databasefout: [Unknown column 't.trid' in 'on clause']
SELECT SQL_CALC_FOUND_ROWS wp_posts.*, 1 rooms_available, 0 rooms_booked , ( SELECT MIN(vacancies.price_per_day) min_price_per_day FROM wp_byt_accommodation_vacancies vacancies WHERE 1=1 AND vacancies.accommodation_id = translations_default.element_id AND vacancies.end_date >= '2018-12-14' ORDER BY min_price_per_day ASC LIMIT 1 ) accommodation_price FROM wp_posts 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) INNER JOIN wp_icl_translations translations_default ON translations_default.element_type = 'post_accommodation' AND translations_default.language_code='nl' AND translations_default.trid = t.trid WHERE 1=1 AND wp_posts.post_type = 'accommodation' AND ((wp_posts.post_status = 'publish')) AND ( ( ( wpml_translations.language_code = 'nl' OR 0 ) AND wp_posts.post_type IN ('post','page','attachment','product','product_variation','location','accommodation','extra_item' ) ) OR wp_posts.post_type NOT IN ('post','page','attachment','product','product_variation','location','accommodation','extra_item' ) ) GROUP BY wp_posts.ID HAVING 1=1 ORDER BY wp_posts.post_title ASC LIMIT 0, 12