Can you tell me what I'm doing wrong here? This query works perfectly...
SELECT * FROM `fab_classes` WHERE status=1 AND `startpub` <=now() AND (`finishpub`>= NOW() OR `finishpub` LIKE '0000%')
But for the life of me I can't replicate it in the list prefilter. I need to query based on 3 fields (just like Joomla articles), status is Published = 1, Start publishing and finish publishing. Just like in Joomla articles finish publishing = '0000-00-00 00:00:00' when not filled in and I have 'default to today's date' turned off in the finish publishing element. Start publishing has 'default to today's date' turned on.
The fabrik list prefilter returns different results vs the sql query that works perfectly.
SELECT * FROM `fab_classes` WHERE status=1 AND `startpub` <=now() AND (`finishpub`>= NOW() OR `finishpub` LIKE '0000%')
But for the life of me I can't replicate it in the list prefilter. I need to query based on 3 fields (just like Joomla articles), status is Published = 1, Start publishing and finish publishing. Just like in Joomla articles finish publishing = '0000-00-00 00:00:00' when not filled in and I have 'default to today's date' turned off in the finish publishing element. Start publishing has 'default to today's date' turned on.
The fabrik list prefilter returns different results vs the sql query that works perfectly.