Title: Bug Report &#8211; Get groups for user
Last modified: August 21, 2016

---

# Bug Report – Get groups for user

 *  Resolved [TiagoVergutz](https://wordpress.org/support/users/tiagovergutz/)
 * (@tiagovergutz)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/bug-report-get-groups-for-user/)
 * Hello,
 * I finded a bug in function `pp_get_groups_for_user` when I try to filter for 
   a specific metagroup_type, is mounted a wrong SQL query.
    If you pass the argument‘
   cols’ => ‘all’ this makes a query with INNER JOIN and sets the alias ‘g’ to ‘
   wp_pp_groups’ table but in WHERE uses the complete name of the table. If pass‘
   cols’ => ‘id’ does not define the JOIN clause and the SQL is wrong too.
 * Other than this the plugin works very well, is very useful and easy to set up,
   congratulations!
 * [http://wordpress.org/plugins/press-permit-core/](http://wordpress.org/plugins/press-permit-core/)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [Kevin Behrens](https://wordpress.org/support/users/kevinb/)
 * (@kevinb)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/bug-report-get-groups-for-user/#post-4306702)
 * Thanks for letting me know. I release a fix for this soon.
 *  Plugin Author [Kevin Behrens](https://wordpress.org/support/users/kevinb/)
 * (@kevinb)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/bug-report-get-groups-for-user/#post-4306716)
 * The pp_get_groups_for_user() error is fixed in Press Permit Core 2.1.33.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Bug Report – Get groups for user’ is closed to new replies.

 * ![](https://ps.w.org/press-permit-core/assets/icon-256x256.png?rev=3409953)
 * [PublishPress Permissions: Control User Access for Posts, Pages, Categories, Tags](https://wordpress.org/plugins/press-permit-core/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/press-permit-core/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/press-permit-core/)
 * [Active Topics](https://wordpress.org/support/plugin/press-permit-core/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/press-permit-core/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/press-permit-core/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Kevin Behrens](https://wordpress.org/support/users/kevinb/)
 * Last activity: [12 years, 6 months ago](https://wordpress.org/support/topic/bug-report-get-groups-for-user/#post-4306716)
 * Status: resolved