SELECT books.name,
books.pub_date,
books.id,
log_taking.returned_at,
log_taking.taken_at,
readers.last_name,
readers.first_name
FROM books
JOIN log_taking ON books.id = log_taking.book_id
JOIN readers ON readers.id = log_taking.reader_id