Invalid query: Whole query: SELECT id, display, blog, blog_title, start_date, end_date, status FROM blogs where display = '1' and id = 6