select *,dayofmonth(entry_public_date) as day,month(entry_public_date) as month,year(entry_public_date) as year from blog_entry1 where entry_post_status=0 and entry_type=0 and blog_id='' and entry_read_status = 0 order by entry_public_date desc==>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 '' at line 1