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