À propos du formateur
Erreur de la base de données WordPress : [Not unique table/alias: 'icltr2']SELECT wp_comments.comment_ID
FROM wp_comments JOIN wp_icl_translations icltr2
ON icltr2.element_id = wp_comments.comment_post_ID
JOIN wp_posts ON wp_posts.ID = icltr2.element_id
AND CONCAT('post_', wp_posts.post_type) = icltr2.element_type
LEFT JOIN wp_icl_translations icltr_comment
ON icltr_comment.element_id = wp_comments.comment_ID
AND icltr_comment.element_type = 'comment'
JOIN wp_icl_translations icltr2
ON icltr2.element_id = wp_comments.comment_post_ID
AND wp_posts.ID = icltr2.element_id
AND CONCAT('post_', wp_posts.post_type) = icltr2.element_type
LEFT JOIN wp_icl_translations icltr_comment
ON icltr_comment.element_id = wp_comments.comment_ID
AND icltr_comment.element_type = 'comment'
WHERE ( ( comment_approved = '0' OR comment_approved = '1' ) ) AND comment_post_ID = 3818 AND comment_type NOT IN ('ld_review', 'note') AND icltr2.language_code = 'fr'
AND (icltr_comment.language_code IS NULL
OR icltr_comment.language_code = icltr2.language_code
) AND comment_type != 'order_note' AND comment_type != 'webhook_delivery' AND comment_type != 'action_log' AND icltr2.language_code = 'fr'
AND (icltr_comment.language_code IS NULL
OR icltr_comment.language_code = icltr2.language_code
)
ORDER BY wp_comments.comment_date_gmt DESC