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