SELECT * FROM `books`
JOIN `authors` ON (`books`.`author_id` = `authors`.`id`)
JOIN `genres` ON (`books`.`genre_id` = `genres`.`id`)
SELECT books.*, authors.name as aName, genres.name. as gName FROM `books`
JOIN `authors` ON (`books`.`author_id` = `authors`.`id`)
JOIN `genres` ON (`books`.`genre_id` = `genres`.`id`)