                               (distinct*)
                               (as "a"))
                           (-> "longName"
-                              (ttl)
+                              (ttl-column)
                               (as "ttla")))
                  (where [[:in :k []]])
                  (limit (? "limit")))))

                              distinct*
                              (as "a"))
                          (-> "longName"
                              ttl
                              (as "ttla")))
                 (limit (? "limit")))))


                 (where {:b (Bytes/fromHexString "0xCAFEBABE")}))))

  (is (thrown? java.lang.IllegalStateException
               (select :foo
                       (count-all)
                       (order-by (asc "a") (desc "b"))
                       (order-by (asc "a") (desc "b")))))

  (is (thrown? java.lang.IllegalArgumentException
               (select :foo
