SQLQuery with where()/join() and transforming via models.