Are any of you aware of a library that helps you build/manipulate SQL queries, that supports JOIN\'s?
It would give a lot of flexibility i\'d think if you have somet
You can use lenkorm it's very easy:
select('contents)->left('categories ON categories.category.id = contents.category_id)->where('content_id = 1')->result();
or you can use as:
select('contents)->left('categories->using(categoru_id)->where('content_id = 1')->result();
Download it from github