Unknown error type: [2] PDO::prepare() expects parameter 1 to be string, object given

Backtrace

#0 myErrorHandler() #1 PDO->prepare() called at [C:\home\site\wwwroot\_core\_database\_database.php:144] #2 db_query() called at [C:\home\site\wwwroot\_core\_database\_database.php:187] #3 db_num_rows() called at [C:\home\site\wwwroot\includes\modules\modurlclass.php:93] #4 seoResolve() called at [C:\home\site\wwwroot\_core\_page\_pagedata.php:132] #5 pcms_PageData->pcms_PageData() called at [C:\home\site\wwwroot\index.php:52]
Fatal error: Call to a member function execute() on boolean in C:\home\site\wwwroot\_core\_database\_database.php on line 145