Please help me to solve this problem. I couldn't understand the error. I read related article, but they show about boolean error, mine is string. Why is that happen? Pleaseee help me..

PHP Code:
<?php

if(isset($_COOKIE['ID_site']) && isset($_COOKIE['Pass_site']))
 {
      
$_SESSION['id'] = $_COOKIE['ID_site'];
      
$_SESSION['password'] = $_COOKIE['Pass_site'];
 
       if(isset(
$_SESSION['id']))
         {
         
$id $_SESSION['id'];
         
$pass $_SESSION['password'];
        
                
$query2 oci_parse($conn,"SELECT * FROM user1 WHERE id ='".$id."'")or die(oci_error());
        
$check2 oci_execute($query2);
        
         while(
$info2=oci_fetch_array(query2,OCI_ASSOC+OCI_RETURN_NULLS)) //the error is from this line
         
{
        
//if the cookie has the wrong password, they are taken to the login page
         
if (($pass != $info2['PASSWORD']) || ($info2['ROLE'] != 'admin') )
             {
                  
header('Location: 1.php?error=4');
             }
         
//otherwise they are show the admin home
               
else
             {
                            
?>