Resources

My Agape try

Your Agape try


Support Forum

You must be logged in to post Login Register

Search 
Search Forums:


 




WordPress database error Not unique table/alias

UserPost

11:42 pm
September 2, 2010


phinx

Member

posts 9

1

Hi,

I am getting the following error since recently updating Role Scoper. It is similar to an error I used to get related to Role Scoper which Kevin expertly solved with a previous update. I'm hoping this can be resolved quickly too. Thanks for your help on this.

The error reads as follows:

[03-Sep-2010 02:36:07] WordPress database error Not unique table/alias: 'wp_posts' for query SELECT DISTINCT * FROM wp_posts INNER JOIN wp_comments ON wp_posts.ID = wp_comments.comment_post_ID INNER JOIN wp_posts ON wp_posts.ID = wp_comments.comment_post_ID LEFT JOIN wp_posts as parent ON parent.ID = wp_posts.post_parent AND parent.post_type IN ('post', 'page') AND wp_posts.post_type = 'attachment' WHERE  ( ( wp_posts.post_type = 'post'  AND (  ( wp_posts.post_status = 'publish' AND (  (  (  (  (  (  (  (  ( wp_posts.ID IN ( SELECT tr.object_id FROM wp_term_relationships AS tr WHERE tr.term_taxonomy_id IN ('3', '4', '21', '6', '7', '9', '10', '168', '12', '20', '22', '23', '25', '30', '31', '33', '34', '35', '37', '39', '40', '42', '103', '107', '119', '120', '134', '135', '137', '138', '140', '141', '144', '145', '146', '147', '152', '153', '154', '155', '156', '167', '165', '166', '169', '174', '191', '232', '260', '261', '262', '270', '276', '287', '296', '301', '324', '325', '326', '327', '329', '369', '370', '379', '380', '381', '385', '386', '391', '401', '420', '423', '424', '430')  )  )  )  )  )  )  )  )  )  ) ) ) ) OR ( wp_posts.post_type = 'page'  AND (  ( wp_posts.post_status = 'publish' AND (  (  (  (  (  (  ( 1=1  AND wp_posts.ID NOT IN ('216', '316', '1733', '2934') )  )  )  )  )  )  ) ) ) ) OR ( wp_posts.post_type = 'attachment' AND parent.post_type = 'post'  AND (  ( parent.post_status = 'publish' AND (  (  (  (  (  (  (  (  ( parent.ID IN ( SELECT tr.object_id FROM wp_term_relationships AS tr WHERE tr.term_taxonomy_id IN ('3', '4', '21', '6', '7', '9', '10', '168', '12', '20', '22', '23', '25', '30', '31', '33', '34', '35', '37', '39', '40', '42', '103', '107', '119', '120', '134', '135', '137', '138', '140', '141', '144', '145', '146', '147', '152', '153', '154', '155', '156', '167', '165', '166', '169', '174', '191', '232', '260', '261', '262', '270', '276', '287', '296', '301', '324', '325', '326', '327', '329', '369', '370', '379', '380', '381', '385', '386', '391', '401', '420', '423', '424', '430')  )  )  )  )  )  )  )  )  )  ) ) ) ) OR ( wp_posts.post_type = 'attachment' AND parent.post_type = 'page'  AND (  ( parent.post_status = 'publish' AND (  (  (  (  (  (  ( 1=1  AND parent.ID NOT IN ('216', '316', '1733', '2934') )  )  )  )  )  )  ) ) ) ) ) AND comment_approved = '1' AND comment_type = '' AND post_date < '2010-09-02 19:36:07' AND 1=1 AND wp_posts.post_status = 'publish' AND post_password = '' ORDER  BY comment_date DESC LIMIT 10 made by require, require_once, include, the_content, apply_filters, call_user_func_array, do_shortcode, preg_replace_callback, do_shortcode_tag, call_user_func, stats_page_shortcode, stats_page, get_recentcomments

2:53 pm
October 12, 2010


Kevin

Admin

posts 2503

2

This should be fixed by a change to the query filtering sequence in Role Scoper 1.3.RC3 (and 1.2.9.RC3 for WP < 3). Can you confirm?


About the Agapetry forum

Currently Online:

22 Guests

Maximum Online: 150

Forums:

Groups: 2

Forums: 7

Topics: 1249

Posts: 5659

Members:

There are 1261 members

There are 1 guests


Kevin has made 2503 posts

Top Posters:

metal450 - 178

Ragnar - 108

YikYak - 70

whiteorb - 49

Daisy - 35

Administrator: Kevin | Moderators: Kevin