title: Best practice for writing sql statements in php
body: <p>Can someone point me towards a resource or show me an example of a good way of writing sql statements in php.</p>
  
  <p>Most statements seem so ugly and unreadable.</p>