Error Number: 1064

You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND t.status = 'open' ORDER BY t.sticky desc, t.entry_date desc, t.entry_id desc' at line 2

SELECT t.entry_id FROM exp_channel_titles AS t LEFT JOIN exp_channels ON t.channel_id = exp_channels.channel_id LEFT JOIN exp_members AS m ON m.member_id = t.author_id WHERE t.entry_id !='' AND t.site_id IN ('1') AND (t.expiration_date = 0 OR t.expiration_date > 1710833332) AND t.channel_id IN (1) AND t.entry_date >= 1317448800 AND t.entry_date <= AND t.status = 'open' ORDER BY t.sticky desc, t.entry_date desc, t.entry_id desc LIMIT 0, 100

Filename: modules/channel/mod.channel.php

Line Number: 2188