WordPress database error: [Not unique table/alias
-
Hello,
I have gotten this error on a website I am working on.
WordPress database error: [Not unique table/alias: ‘jfr_comments’]
SELECT SQL_CALC_FOUND_ROWS znfr_posts.*, AVG( jfr_commentmeta.meta_value ) as average_rating FROM jfr_posts INNER JOIN jfr_postmeta ON ( znfr_posts.ID = jfr_postmeta.post_id )LEFT JOIN jfr_comments ON(jfr_posts.ID = jfr_comments.comment_post_ID) LEFT JOIN jfr_commentmeta ON(jfr_comments.comment_ID = jfr_commentmeta.comment_id) LEFT OUTER JOIN jfr_comments ON(jfr_posts.ID = jfr_comments.comment_post_ID) LEFT JOIN jfr_commentmeta ON(jfr_comments.comment_ID = jfr_commentmeta.comment_id) WHERE 1=1 AND ( ( jfr_postmeta.meta_key = ‘_visibility’ AND CAST(jfr_postmeta.meta_value AS CHAR) IN (‘visible’,’catalog’) ) ) AND jfr_posts.post_type = ‘product’ AND ((jfr_posts.post_status = ‘publish’)) AND jfr_commentmeta.meta_key = ‘rating’ AND ( jfr_commentmeta.meta_key = ‘rating’ OR jfr_commentmeta.meta_key IS null ) GROUP BY jfr_posts.ID ORDER BY average_rating DESC, jfr_posts.post_date DESC LIMIT 0, 24I really don’t know where to start to solve it.
Thank you for your help and attention!LFABIO
- The topic ‘WordPress database error: [Not unique table/alias’ is closed to new replies.