Say I have this bit of SQL:
select *
from `fluents`
inner join `tests` on `fluents`.`id` = `tests`.`fluent_test_id`
inner join (
select `fluents`.`id` from `fluents` order by `fluents`.`id` desc limit 10
) as j on `fluents`.`id` = `j`.`id`
order by `fluents`.`created_at`;
I know I could run the raw SQL but as a learning exercise I'm trying to convert it to fluent and failing miserably, is this even possible?