ensure that a column exists in the table before attempting to filter on it