I need to track where in my CakePHP 2.5.2 app this query is being executed (as reported by DebugKit):
SELECT COUNT(*) AS count FROM sometable WHERE status = 1
I have found a model where the table is referenced, and maybe it is referenced in other places.
Is there a better way other than just looking for models or running every possible PHP script to find where this query came from in my CakePHP app?