# ActiveRecord \> MySQL \> undefined method \`more\_results'

**URL:** <https://www.ruby-forum.com/t/activerecord-mysql-undefined-method-more-results/195675>\
**Category:** Ruby\
**Created:** [September 28, 2010, 1:00am UTC](https://www.ruby-forum.com/t/activerecord-mysql-undefined-method-more-results/195675 "2010-09-28T01:00:07Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![andrewkendall](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/b77776/32.png) [@andrewkendall](https://www.ruby-forum.com/u/andrewkendall)\
**Post date:** [September 28, 2010, 1:00am UTC](https://www.ruby-forum.com/t/activerecord-mysql-undefined-method-more-results/195675/1 "2010-09-28T01:00:07Z")

</div>

I am attempting to use ActiveRecord within a script I am writing to  
process some data within a MySQL database.

In my development environment everything works perfectly, however, when  
I deploy the script in the production environment, it fails with the  
following error:

activerecord-3.0.0/lib/active\_record/connection\_adapters/mysql\_adapter.rb:623:in  
`select': undefined method`more\_results’ for #Mysql:0x915c150  
(NoMethodError)

I have noted this error while using the “find,” “where,” and  
“find\_by\_sql” methods.

I am using the following gems in both environments.

activerecord (3.0.0)  
mysql (2.8.1)

The MySQL version, however, is different. In my development environment,  
I am running 5.0.67 while the production environment is running the  
5.0.32-Debian\_7etch6-log Debian etch distribution.

I am at a loss as to how to diagnose this issue. Thanks in advance for  
any suggestions!

---

<div class="post-metadata">

**Author:** ![andrewkendall](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/b77776/32.png) [@andrewkendall](https://www.ruby-forum.com/u/andrewkendall)\
**Post date:** [September 28, 2010, 7:45pm UTC](https://www.ruby-forum.com/t/activerecord-mysql-undefined-method-more-results/195675/2 "2010-09-28T19:45:39Z")

</div>

> In my development environment everything works perfectly, however, when  
> I deploy the script in the production environment, it fails with the  
> following error:
> 
> activerecord-3.0.0/lib/active\_record/connection\_adapters/mysql\_adapter.rb:623:in  
> `select': undefined method`more\_results’ for #Mysql:0x915c150  
> (NoMethodError)

I would step through where this call is _working_ in development, see  
where it should have been defined (but apparently isn’t in production).
