title: How to select from database with relations?
body: <p>I have database with schema on picture below and I need to select everything related to one row (one id) of [letaky]. That means the related [zamestnanci], every related [obsah] and every [knihy] in it. </p>
  
  <p>This is the first time i used relations in database and i have no idea how to make such a select. </p>
  
  <p><img src="https://i.stack.imgur.com/XXYOe.png" alt="http://img248.imageshack.us/img248/4548/schemai.png"></p>