Fix: PHP Fatal error: Call to a member function getSelect() on a non-object