My sql that gives me the results I want (a single record from books table).
select * from books where book_number = ? and id not in (select book_id from chec