String not found

Greetings!

I included an array string value in my query.
Is there any php function that will show the string that is not found in my database?


for($i = 0 ; $i < count($book); $i++)
			{
			$books = $book[$i];

$query2 = mysql_query("SELECT * , tbl_book.id AS bid
FROM tbl_book, tbl_bacquisition
WHERE tbl_bacquisition.ba_Accnum = '$books'
AND tbl_bacquisition.bd_Id = tbl_book.id

}

if (mysql_num_rows($query2))< count($books){
$status = 'OK' ;
}else {
$status='NOTOK' ;
echo 'Book not found ........print  the book that is not found';}

Is that possible?
Thank you.