Fix with with order by

Looks like it solves `select * form (with...)` queries