Indexing console

Everything else is working perfectly. i also disabled the elasticsearch and checked but error still there. Error is with Query, at last word “AND (())”, when i remove this and run directly on Mysql, it works.
Where this Query is written so i could fix it.
Thanks