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 blog_date <= '2024-03-28 20:43:19' UNION SELECT * FROM tpi_extend LEFT JOIN ' at line 1