title: How to use this laravel query builder for this SQL Query
body: <p>I have this query:</p>
  <p><code>SELECT `topic_posts`.*, `users`.`id` AS `adminID`, `users`.`name` as `adminName` FROM `topic_posts` INNER JOIN `topics` ON `topics`.`id` = `topic_posts`.`topic` INNER JOIN `users` ON `users`.`id` = `topic_posts`.`player` WHERE `users`.`playerAdminLevel` &gt; 0 AND `topics`.`type` = 0 GROUP BY (`topic_posts`.`id`)</code></p>
  <p>And I want to use in Laravel, something like:</p>
  <p><code>$result = DB::table('topic_posts`)-&gt;join..etc</code>
  And also, to use <code>-&gt;paginate(20)</code></p>
  <p>How can I do that?</p>