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 'for-terror-ties.JPG' at line 1
select *,DATE_FORMAT(created_on,'%a, %D %b %Y %h:%i %p') as created_on2 from tbl_news where news_id=Obama-slams-Pak-army-for-terror-ties.JPG