[SOLVED] List filters and empty or null fields

9 years 5 months ago #253391 by Smooth2SITF
Replied by Smooth2SITF on topic List filters and empty or null fields
So, I added the Advanced Filter as suggested:

( c.`cb_transferedfrom` != '' AND c.`cb_transferedfrom` IS NOT NULL )

Now I am getting a 1054 page with this error:


1054 - Unknown column 'c.cb_transferedfrom' in 'where clause' SQL=SELECT COUNT( DISTINCT u.id ) FROM ngm19_users u JOIN ngm19_user_usergroup_map g ON g.`user_id` = u.`id` JOIN ngm19_comprofiler ue ON ue.`id` = u.`id` WHERE ue.approved = 1 AND ue.confirmed = 1 AND g.group_id IN (0, 1, 38, 32, 29, 27, 41, 30, 9, 28, 6, 7, 35, 36, 40, 34, 37, 2, 3, 4, 5, 10, 17, 15, 14, 11, 12, 39, 16, 13, 18, 19, 25, 26, 21, 23, 22, 20, 24, 42, 8, 31) AND ( c.`cb_transferedfrom` != '' AND c.`cb_transferedfrom` IS NOT NULL )

The field exists.... i don't know what its trying to do but it appears its saying that the field doesn't exist.

Please Log in to join the conversation.

9 years 5 months ago #253429 by krileon
Replied by krileon on topic List filters and empty or null fields
Whoops, the prefix is "ue."; sorry. Change the "c." to "ue.".


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.
The following user(s) said Thank You: Smooth2SITF

Please Log in to join the conversation.

9 years 5 months ago #253455 by Smooth2SITF
Replied by Smooth2SITF on topic List filters and empty or null fields
Awesome! That now seems to work better!

Thanks again for your expert help!

Glad I was able to kinda find a bug!

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.241 seconds

Facebook Twitter LinkedIn