catch sql filter errors