Remove for_sale join from main get_books query
Unescape all parameters