diff --git a/cachalot/utils.py b/cachalot/utils.py
index <HASH>..<HASH> 100644
--- a/cachalot/utils.py
+++ b/cachalot/utils.py
@@ -121,7 +121,10 @@ def _find_subqueries_in_where(children):
             elif rhs_class is QuerySet:
                 yield rhs.query
             elif rhs_class is Subquery or rhs_class is Exists:
-                yield rhs.queryset.query
+                try:
+                    yield rhs.query
+                except:
+                    yield rhs.queryset.query
             elif rhs_class in UNCACHABLE_FUNCS:
                 raise UncachableQuery
Fix for queryset no longer existing (#<I>)