I am getting the below error while triggering the file with crone jobs, while it doesn't show any error with manual triggering. Please help whats the logic behind this error. Thanks

> 
> Fatal error: Call to a member function find() on a non-object in **/home/afghannewscom/public\_html/auto/MainProject.php** on line **35**  
> 
> 
> 
>