Fatal error: Uncaught Error: Call to a member function exec() on boolean in [...] on line 13
foreach($db->exec($queryLg) as $val){
if(password_verify($db->exec($queryPass), $lgPass)){
$_SESSION['mail'] = $lgLogin;
$_SESSION['pid'] = $db->exec($query['account']['id']);
if($db->exec($query['account']['id'])){
echo 'success';
}
}
}