Makulia
Member
Hello Community!
I have a list with usernames and the birthdays dates. I want to make a module that render users birthdays of the current month. I tool list module and set custom list ordering like:
SELECT `birthday` FROM `portal_users` WHERE MONTH(birthday) = MONTH(NOW()) ORDER BY DAYOFMONTH(birthday) DESC
I have put this query into prefilter but it ignores the "Order by" part. How to make this work?
Thanks!
I have a list with usernames and the birthdays dates. I want to make a module that render users birthdays of the current month. I tool list module and set custom list ordering like:
SELECT `birthday` FROM `portal_users` WHERE MONTH(birthday) = MONTH(NOW()) ORDER BY DAYOFMONTH(birthday) DESC
I have put this query into prefilter but it ignores the "Order by" part. How to make this work?
Thanks!