Fixes Admin::ResourcesController#get_thumbnails on PostgreSQL

Hi!

`LIMIT offset, pos` syntax is only compatible with MySQL, resulting in an exception when using Postgres.