found a bug in lib/query.rb line 66 OFFSET #{hash[:limit] should be written OFFSET #{hash[:offset] to allow
query_context.to_sql
=> "SELECT * FROM ratings JOIN user WHERE (ratings.`user_id` = 25 AND users.activated) LIMIT 5 OFFSET 0"
query.rb
....
def to_s
...
sql << "JOIN #{hash[:includes].join(', ')}" unless hash[:includes].blank?
sql << "WHERE #{hash[:conditions].join(' AND ')}" unless hash[:conditions].blank?
sql << "ORDER BY #{hash[:order].join(', ')}" unless hash[:order].blank?
sql << "LIMIT #{hash[:limit]}" unless hash[:limit].blank?
#sql << "OFFSET #{hash[:limit]}" unless hash[:offset].blank?
sql << "OFFSET #{hash[:offset]}" unless hash[:offset].blank?
...