- Posts: 18
- Thank you received: 0
SQL command to hide duplicated members
- Lumiga
- Topic Author
- Offline
- New Member
-
Less
More
1 year 2 months ago - 1 year 2 months ago #162843
by Lumiga
SQL command to hide duplicated members was created by Lumiga
Hi,
I'm encountering an issue with our members list where members with multiple plans are appearing multiple times. My objective is to display each member only once, regardless of how many plans they are subscribed to.
To address this, I attempted the following SQL query at the menu-item: Members list... on the tab: "Members data SQL Filter"
However, I encountered a syntax 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 'SELECT DISTINCT user_id FROM msw73_osmembership_subscribers; AND tbl.show_on_mem' at line 5
Could you provide some guidance on how to resolve this issue?
Kind regards,
Lumiga
I'm encountering an issue with our members list where members with multiple plans are appearing multiple times. My objective is to display each member only once, regardless of how many plans they are subscribed to.
To address this, I attempted the following SQL query at the menu-item: Members list... on the tab: "Members data SQL Filter"
Code:
SELECT DISTINCT user_id FROM msw73_osmembership_subscribers;
However, I encountered a syntax 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 'SELECT DISTINCT user_id FROM msw73_osmembership_subscribers; AND tbl.show_on_mem' at line 5
Could you provide some guidance on how to resolve this issue?
Kind regards,
Lumiga
Last edit: 1 year 2 months ago by Lumiga.
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
1 year 2 months ago #162849
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic SQL command to hide duplicated members
Hi Lumiga
Unfortunately, I could not see a way to handle this via SQL. For each plan users subscribed for, there will be one record displayed and it could not be changed
Tuan
Unfortunately, I could not see a way to handle this via SQL. For each plan users subscribed for, there will be one record displayed and it could not be changed
Tuan
Please Log in or Create an account to join the conversation.
- Elliot Block
- Offline
- Senior Member
-
Less
More
- Posts: 73
- Thank you received: 2
1 year 1 month ago #163865
by Elliot Block
Replied by Elliot Block on topic SQL command to hide duplicated members
I'd like to chime in on this.
I am experiencing a similar issue that may be related.
I have a menu item that displays a Membership Pro Member List for subscribers of all plans; under that menu item's "Options" tab, I have "Subscription Status" set to "Active".
Despite "Subscription Status" being set to "Active", I still see expired members on the Member List.
Maybe this is the issue that the OP is having? Can you take a look at this, Tuan?
Thanks!
Elliot
I am experiencing a similar issue that may be related.
I have a menu item that displays a Membership Pro Member List for subscribers of all plans; under that menu item's "Options" tab, I have "Subscription Status" set to "Active".
Despite "Subscription Status" being set to "Active", I still see expired members on the Member List.
Maybe this is the issue that the OP is having? Can you take a look at this, Tuan?
Thanks!
Elliot
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
1 year 1 month ago #163876
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic SQL command to hide duplicated members
Hi Elliot
Could you please submit a support ticket so that I can check the issue directly on your site? I would need to have super user account of the site, link to the page and tell me sample expired Member who should not be displayed but still being displayed so that I can check it
Tuan
Could you please submit a support ticket so that I can check the issue directly on your site? I would need to have super user account of the site, link to the page and tell me sample expired Member who should not be displayed but still being displayed so that I can check it
Tuan
Please Log in or Create an account to join the conversation.
- Elliot Block
- Offline
- Senior Member
-
Less
More
- Posts: 73
- Thank you received: 2
1 year 1 month ago #163877
by Elliot Block
Replied by Elliot Block on topic SQL command to hide duplicated members
Just submitted the ticket.
Thank you!
Thank you!
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
1 year 1 month ago #163879
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic SQL command to hide duplicated members
Thanks Elliot. Will check and reply you via support ticket
Regards,
Tuan
Regards,
Tuan
Please Log in or Create an account to join the conversation.
- Aathman
- Offline
- New Member
-
Less
More
- Posts: 17
- Thank you received: 0
2 months 4 days ago #170482
by Aathman
Replied by Aathman on topic SQL command to hide duplicated members
I have this same issue, and submitted a ticket.
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
2 months 4 days ago #170483
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic SQL command to hide duplicated members
Hi Aathman
I replied you via support ticket. Please check your ticket to see the suggested solution
Regards,
Tuan
I replied you via support ticket. Please check your ticket to see the suggested solution
Regards,
Tuan
Please Log in or Create an account to join the conversation.
Moderators: Tuan Pham Ngoc
Support
Documentation
Information
Copyright © 2025 Joomla Extensions by Joomdonation. All Rights Reserved.
joomdonation.com is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.