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 'AND (publish_up = '0000-00-00 00:00:00' OR publish_up <= '2024-04-20 04:17:27') ' at line 5 SQL=SELECT id, subject, send, hits FROM `jos_letterman`
WHERE
published=1 AND
access <=
AND (publish_up = '0000-00-00 00:00:00' OR publish_up <= '2024-04-20 04:17:27')
AND (publish_down = '0000-00-00 00:00:00' OR publish_down >= '2024-04-20 04:17:27')
ORDER BY created DESC
LIMIT ,