Merge pull request #1133 from SammyK/develop

Fixed bug for PostgreSQL driver where limit() & order_by() throws error