
WordPress databasefout: [Unknown column 'wpml_translations.language_code' in 'where clause']
SELECT wp_posts.*
FROM wp_posts
WHERE 1=1 AND wp_posts.post_name = 'wagemaker-8113r-2' AND wp_posts.post_type = 'attachment' AND ( ( ( wpml_translations.language_code = 'nl' OR (
wpml_translations.language_code = 'nl'
AND wp_posts.post_type IN ( 'attachment' )
AND ( (
( SELECT COUNT(element_id)
FROM wp_icl_translations
WHERE trid = wpml_translations.trid
AND language_code = 'nl'
) = 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 = 'nl'
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 ('attachment','wp_block','wp_template','wp_template_part','wp_navigation' ) ) OR wp_posts.post_type NOT IN ('attachment','wp_block','wp_template','wp_template_part','wp_navigation' ) )
ORDER BY wp_posts.post_date DESC