Pagination......

Your conditions parameter is wrong.. You're sending :conditions =>
["voicechat_id = @chatuser.voicechat_id"] which is exactly what's
going to show up in the mysql query, which of course will fail.. For
example, it'll generate something like:

select * from chatusers where voicechat_id = @chatuser.voicechat_id ...

which isn't valid sql.. You want to use the following:

:conditions => ["voicechat_id = ?", @chatuser.voicechat_id]

which will bind the @chatuser.voicechat_id value to the ? placeholder character.

you should also look at the "will_paginate" plugin
(http://errtheblog.com/post/4791), it's much better than the rails
built in pagination.

Mike