When we add a custom filter to DataTables:
$.fn.dataTable.ext.search.push(function(settings, data, dataIndex) {
...
Your simply doing a wrong approach here.
$.fn.dataTable.ext.search.push
has another purpose which you should never use when you multiple datatables in the page that you want to differently filter. The easiest way to build a custom search for a specific table is to build an array of unique ids for your data and later search it in your column id. Example: