4 respostas

your have both equals (=) and IN in your SELECT statement. Need one or the other so try:
regardsAndrewbook = [select Id, Name, Price__c from Book__c where Id = : bookId];

so try:
regardsAndrewbook = [select Id, Name, Price__c from Book__c where Id = : bookId];