Неустранимая ошибка: вызов функции-члена bind_param () в boolean в

Код

if(isset($_POST['create'])){ $fname = trim($_POST['fname']); $lname = trim($_POST['lname']); $ftname = trim($_POST['ftname']); $mtname = trim($_POST['mtname']); $date_of_admission = trim($_POST['date_of_admission']); $date_of_birth = trim($_POST['date_of_birth']); $photo_location = trim($_POST['photo_location']); $address = trim($_POST['address']); $phone = trim($_POST['phone']); $sex = trim($_POST['sex']); $nationality = trim($_POST['nationality']); $religion = trim($_POST['religion']); if(empty($fname) && empty($lname) &&empty($ftname) &&empty($mtname) &&empty($date_of_admission) && empty($phone) && empty($sex)){ $error = "You must fill all fields."; }else{ $insert = $db->prepare("INSERT INTO st_info (fname, lname, ftname, mtname, date_of_birth, date_of_admission, photo_location, address, phone, sex, nationality, religion,joined) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, NOW())"); $insert->bind_param('sssssssssddd',$fname,$lname,$ftname,$mtname,$date_of_birth,$date_of_admission,$photo_location,$address,$phone,$sex,$nationality,$religion); if($insert->execute()){ //$success = "st_info added successfully!"; header("location:index.php"); } } } 

ошибка

Неустранимая ошибка: вызов функции-члена bind_param () в boolean в C: \ xampp \ htdocs \ create.php в строке 26