I`m trying to creat multilanguage site with OOP php and mysql

I have created 4 files

1) index.php
2) init.php
3) lang.php
4) database.php

database.php

PHP Code:
<?php 
    $config 
= array(
        
'host'        => '127.0.0.1',
        
'username'     => 'root',
        
'password'     => '',
        
'dbname'     => 'si'
    
);
    
    
$db = new PDO('mysql:host=' $config['host'] . ';dbname=' $config['dbname'],$config['username'],$config['password']);
    
$db->setAttribute(PDO::ATTR_ERRMODEPDO::ERRMODE_EXCEPTION);
    
mysql_query('SET CHARACTER SET utf8');
    
mysql_query('SET NAMES utf8');
?>
lang.php

PHP Code:
<?php
    
class Language 
    
{
        private 
$db;
        public function 
__construct($database)
        {
            
$this->db $database;
        }
        
        public function 
pagetranslate($langname)
        {
            
$query    $this->db->prepare("SELECT F.name, FT.trans
                                            FROM `languages` AS L
                                            INNER JOIN `transfunc` AS FT ON FT.langid = L.id
                                            INNER JOIN `func` AS F ON FT.funcid = F.id
                                            WHERE L.name =?"
);
            
$query->bindValue(1$langname);
            try
            {
                
$query->execute();
                
$pagetrans $query->fetch();                
                return 
$pagetrans;
            }
            catch(
PDOException $e)
            {
                die(
$e->getMessage());
            }
        } 
    }
init.php
PHP Code:
<?php
    
if (ob_get_level() == 0){ob_start();}
    if (!isset(
$_SESSION)){session_start();}
    
    require_once 
'connect/database.php';
    require_once 
'class/lang.php';
    
$language    = new Language($db);
?>
index.php

HTML Code:
<?php
	if (!isset($_SESSION)){session_start();}
	header('Cache-control: private');
	if(isset($_GET['lang']))
	{
		$langname = $_GET['lang'];
	}
	else if(isset($_SESSION['lang']))
	{
		$langname = $_SESSION['lang'];
	}
	else if(isset($_COOKIE['lang']))
	{
		$langname = $_COOKIE['lang'];
	}
	else
	{
		$langname = 'ka';
	}
	include 'system/init.php';
	$pagetrans = array();
	$pagetrans = $language->pagetranslate($langname);
		
	function pageinfo($searchWord, $pagetrans)
	{
		foreach( $pagetrans as $key => $val )
		{
			if( $val["name"] == $searchWord )
			{
				return $val["trans"];
			}
		}
	}
?>
<!doctype html>
<html>
	<head>
        <meta charset="utf-8">
        <title><?php echo pageinfo('hometitle', $pagetrans); ?></title>
         </head>
        <body>
        </body>
</html>
and also I have created database

my DB image

and when I executing index.php
it writting this error

</br> <b>Nobice</b>
please help me

I do not understand what is the problem

when I`m executing the selector in mysql workbench
please look this image

please help me!!!