Error in query:

Query:

SELECT * FROM `ssd_module_actions_items` WHERE (`enabled` IN ('1')) AND (`visibility` IN ('1', '2', '3')) AND ((`date_end` > ) OR (`date_end` IS NULL)) ORDER BY `date` DESC, `id` DESC;

Error number:

1064

Error message:

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 ') OR (`date_end` IS NULL)) ORDER BY `date` DESC, `id` DESC' at line 1

Debug backtrace:

keyvalue
0array([file] = '/home/gscore/graphxcms/3.8/php/database.cls.php', [line] = '608', [function] = '__reportError', [class] = 'clsDatabase', [type] = '::', [args] = array([0] = 'SELECT * FROM `ssd_module_actions_items` WHERE (`enabled` IN ('1')) AND (`visibility` IN ('1', '2', '3')) AND ((`date_end` > ) OR (`date_end` IS NULL)) ORDER BY `date` DESC, `id` DESC;', ), )
1array([file] = '/home/ssdrempt/domains/slaapspecialistdrempt.nl/public_html/templates/default/includes/homepage-blocks/block-04.php', [line] = '15', [function] = 'getRecords', [class] = 'clsDatabase', [type] = '::', [args] = array([0] = 'SELECT * FROM `ssd_module_actions_items` WHERE (`enabled` IN ('1')) AND (`visibility` IN ('1', '2', '3')) AND ((`date_end` > ) OR (`date_end` IS NULL)) ORDER BY `date` DESC, `id` DESC;', ), )
2array([file] = '/home/gscore/graphxcms/3.8/php/file.cls.php', [line] = '738', [args] = array([0] = '/home/ssdrempt/domains/slaapspecialistdrempt.nl/public_html/templates/default/includes/homepage-blocks/block-04.php', ), [function] = 'include', )
3array([file] = '/home/gscore/graphxcms/3.8/php/html.cls.php', [line] = '1460', [function] = 'load', [class] = 'clsFile', [type] = '::', [args] = array([0] = '/home/ssdrempt/domains/slaapspecialistdrempt.nl/public_html/templates/default/includes/homepage-blocks/block-04.php', ), )
4array([file] = '/home/ssdrempt/domains/slaapspecialistdrempt.nl/public_html/templates/default/includes/body-inline.homepage.php', [line] = '47', [function] = 'wrapElements', [class] = 'clsHtml', [type] = '::', [args] = array([0] = array([0] = '/home/ssdrempt/domains/slaapspecialistdrempt.nl/public_html/templates/default/includes/homepage-blocks/block-04.php', ), [1] = '2', [2] = 'row-03 homepage-row', [3] = FALSE, [4] = TRUE, ), )
5array([file] = '/home/ssdrempt/domains/slaapspecialistdrempt.nl/public_html/templates/default/index.php', [line] = '187', [args] = array([0] = '/home/ssdrempt/domains/slaapspecialistdrempt.nl/public_html/templates/default/includes/body-inline.homepage.php', ), [function] = 'require_once', )
6array([file] = '/home/gscore/graphxcms/3.8/php/file.cls.php', [line] = '738', [args] = array([0] = '/home/ssdrempt/domains/slaapspecialistdrempt.nl/public_html/templates/default/index.php', ), [function] = 'include', )
7array([file] = '/home/gscore/graphxcms/3.8/php/output.cls.php', [line] = '1340', [function] = 'load', [class] = 'clsFile', [type] = '::', [args] = array([0] = '/home/ssdrempt/domains/slaapspecialistdrempt.nl/public_html/templates/default/index.php', ), )
8array([file] = '/home/gscore/graphxcms/3.8/php/frontend.cls.php', [line] = '1211', [function] = 'doPage', [class] = 'clsOutput', [type] = '::', [args] = array(), )
9array([file] = '/home/gscore/graphxcms/3.8/controller.php', [line] = '69', [function] = 'doRequest', [class] = 'clsFrontend', [type] = '::', [args] = array(), )
10array([file] = '/home/ssdrempt/domains/slaapspecialistdrempt.nl/public_html/index.php', [line] = '58', [args] = array([0] = '/home/gscore/graphxcms/3.8/controller.php', ), [function] = 'require_once', )