1064 - 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_comments_date <='2024-11-17' and bcm.active='Y' and pin_post='Y' order ' at line 1

Select lb.live_blog_headline,blog_comments_id,bcm.live_blog_id,blog_comments_story,blog_comments_video_id,blog_comments_date,blog_comments_time,blog_comments_epoch,pin_post,highlight_post from blog_comments_master bcm left join live_blog_master lb on lb.live_blog_id=bcm.live_blog_id where bcm.live_blog_id= and blog_comments_date <='2024-11-17' and bcm.active='Y' and pin_post='Y' order by blog_comments_id DESC LIMIT 0,1

Error