Added LIMIT-OFFSET clause for compatibility with PostgreSQL

PostgreSQL doesn't have two-argument LIMIT clause -> added condition with LIMIT-OFFSET clause.

http://www.postgresql.org/docs/current/static/sql-select.html#SQL-LIMIT