SELECT
*
FROM news WHERE news_cid =
AND (news_postdate < '2025-08-30'
OR (news_postdate = '2025-08-30' AND news_posttime <= '16:12:40'))
AND (news_draft IS NULL OR news_draft != 'Yes' OR news_draft = '' OR news_draft = '0')
AND news_date REGEXP '^[1-2][0-9]{3}-[0-1][0-9]-[0-3][0-9]$'