select * from blogs where id=5 and status=1