log handling
fix news archive SQL error