Call to a member function fetchArray() on array