• just a thought, but have you tried to check what data is actually being returned? Like a NULL, or something else that the script doesn't like?