in reply to can't use string as hash ref

Here's the documentation for the fetchall_hashref method.

If that doesn't help, please post your code so we can help you further.

-- Ken