when you run into a problem that is related to a database query, the best way to isolate the issue is to run your database query outside of php
that way you get to see the actual mysql error messages rather than some feeble complaint that php was unable to handle the response
in your case, you are attempting to retrieve data from a string, not a table
-- This message may have been cut off and the rest will only be shown to members. To become a member, click here --