just upgraded from 1.2 to 1.5
I followed all intructions exactly for migrating the existing 1.2 templates to themes of 1.5.
If I try to use the default theme, then the blog works perfectly, but using my old theme, when i try to access the individual post page (comments.php) i get this error at the top
WordPress database error: [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 'ORDER BY post_date ASC LIMIT 1' at line 1]
SELECT ID,post_title FROM wp_posts WHERE post_date > '' AND post_date < '2005-05-19 00:39:21' AND post_status = 'publish' AND ID != ORDER BY post_date ASC LIMIT 1
everything worls perfectly when i switch back to the default theme. plz help