Title: Error with Category Visibility Plugin
Last modified: August 18, 2016

---

# Error with Category Visibility Plugin

 *  [biscuitrat](https://wordpress.org/support/users/biscuitrat/)
 * (@biscuitrat)
 * [18 years, 6 months ago](https://wordpress.org/support/topic/error-with-category-visibility-plugin/)
 * I was trying to view permalinked posts on my friend’s site because she was unable
   to, and we kept getting 404 errors on the pages with these errors:
 *     ```
       WordPress database error: [You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'GROUP BY wp_posts.ID ORDER BY post_date DESC' at line 1]
       SELECT wp_posts.* FROM wp_posts LEFT JOIN wp_post2cat ON (wp_posts.ID = wp_post2cat.post_id) LEFT JOIN wp_categories ON (wp_post2cat.category_id = wp_categories.cat_ID) WHERE 1=1 AND post_name = 'just-the-voice' AND category_id IN (7) AND (post_type = 'post') AND ((wp_catt_visibility.archives=1 AND wp_catt_visibility.cv_user_level<='10') OR post_type='page' OR wp_catt_visibility.catt_ID IS NULL GROUP BY wp_posts.ID ORDER BY post_date DESC
       ```
   
 * Which strikes me as odd because we haven’t modified that plugin in any way. Does
   anyone know about what I can change within the plugin so the error will stop 
   coming up and the permalinks will work again?
 * (For now, I’ve disabled Category Visibility on her site and the permalinks work
   just fine)

Viewing 1 replies (of 1 total)

 *  [moshu](https://wordpress.org/support/users/moshu/)
 * (@moshu)
 * [18 years, 6 months ago](https://wordpress.org/support/topic/error-with-category-visibility-plugin/#post-642751)
 * It is NOT compatible with 2.3

Viewing 1 replies (of 1 total)

The topic ‘Error with Category Visibility Plugin’ is closed to new replies.

## Tags

 * [MySQL](https://wordpress.org/support/topic-tag/mysql/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [moshu](https://wordpress.org/support/users/moshu/)
 * Last activity: [18 years, 6 months ago](https://wordpress.org/support/topic/error-with-category-visibility-plugin/#post-642751)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
