Subject: | ERROR: column me.1 does not exist |
When I call ->exists on my resultset I got error:
ERROR: column me.1 does not exist
The generated query is:
(SELECT "me"."1" FROM "roles_models" "me" WHERE ( ( "Model"."name" = ? AND "me"."name" = ? AND "me"."role_id" = ? ) ) LIMIT ?)