SQLite3::SQLException: no such column: cart_stages.id: SELECT "carts"."id" AS t0_r0, "carts"."user_id" AS t0_r1, "carts"."total" AS t0_r2, "carts"."created_at" AS t0_r3, "carts"."updated_at" AS t0_r4, "carts"."state" AS t0_r5, "carts"."tracking_number" AS t0_r6, "carts"."invoice_number" AS t0_r7, "carts"."date_sent" AS t0_r8, "carts"."region" AS t0_r9, "carts"."currency" AS t0_r10, "carts"."notes" AS t0_r11, "carts"."shipping_destination" AS t0_r12, "carts"."voucher_id" AS t0_r13, "cart_stages"."id" AS t1_r0, "cart_stages"."cart_id" AS t1_r1, "cart_stages"."stage" AS t1_r2, "cart_stages"."created_at" AS t1_r3, "cart_stages"."updated_at" AS t1_r4, "cart_stages"."product_id" AS t1_r5, "cart_stages"."details" AS t1_r6 FROM "carts"  LEFT OUTER JOIN "cart_stages" ON cart_stages.cart_id = carts.id WHERE ("cart_stages"."stage" = 35)  AND  "carts".id IN (26483, 26481)  ORDER BY carts.created_at DESC