WordPress-Datenbank-Fehler: [Unknown column 'mt1.meta_key' in 'where clause']
SELECT SQL_CALC_FOUND_ROWS wp_posts.ID
FROM wp_posts LEFT JOIN wp_term_relationships ON (wp_posts.ID = wp_term_relationships.object_id) LEFT JOIN wp_term_relationships AS tt1 ON (wp_posts.ID = tt1.object_id) LEFT JOIN wp_term_relationships AS tt2 ON (wp_posts.ID = tt2.object_id) INNER JOIN wp_postmeta ON ( wp_posts.ID = wp_postmeta.post_id ) LEFT 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_term_relationships.term_taxonomy_id IN (144)
AND
tt1.term_taxonomy_id IN (1505)
AND
wp_posts.ID NOT IN (
SELECT object_id
FROM wp_term_relationships
WHERE term_taxonomy_id IN (7)
)
AND
tt2.term_taxonomy_id IN (144)
) AND (
(
( wp_postmeta.meta_key = 'eco_features' AND wp_postmeta.meta_value REGEXP '.*;s:[0-9]+:\"biomaterial\".*' )
OR
( wp_postmeta.meta_key = 'eco_features' AND wp_postmeta.meta_value REGEXP '.*;s:[0-9]+:\"fsc\".*' )
)
AND wp_posts.ID NOT IN(
SELECT DISTINCT wp_posts.post_parent
FROM wp_posts
WHERE wp_posts.post_type = 'product_variation'
)
OR (
wp_posts.ID IN( 33711,33634,29381,32456,32420,32372,29388,29813 )
AND (
(
( wp_postmeta.meta_key = 'eco_features' AND wp_postmeta.meta_value REGEXP '.*;s:[0-9]+:\"biomaterial\".*' )
AND
( mt1.meta_key = 'eco_features' AND mt1.meta_value REGEXP '.*;s:[0-9]+:\"fsc\".*' )
)
)
) ) AND ((wp_posts.post_type = 'product' AND (wp_posts.post_status = 'publish' OR wp_posts.post_status = 'acf-disabled'))) AND ( ( ( wpml_translations.language_code = 'de' OR (
wpml_translations.language_code = 'de'
AND wp_posts.post_type IN ( 'e-landing-page','e-floating-buttons','elementor_library','product','document_template' )
AND ( (
( SELECT COUNT(element_id)
FROM wp_icl_translations
WHERE trid = wpml_translations.trid
AND language_code = 'de'
) = 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 = 'de'
AND (
p.post_status = 'publish' OR p.post_status = 'private' 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','e-landing-page','e-floating-buttons','elementor_library','cms_block','woodmart_slide','portfolio','product','product_variation','document_template' ) ) OR wp_posts.post_type NOT IN ('post','page','attachment','wp_block','wp_template','wp_template_part','wp_navigation','e-landing-page','e-floating-buttons','elementor_library','cms_block','woodmart_slide','portfolio','product','product_variation','document_template' ) )
GROUP BY wp_posts.ID
ORDER BY wp_posts.menu_order ASC, wp_posts.post_title ASC
LIMIT 0, 24 /* Current SQL Query is filtered by Filter Everything plugin */