That was me trying to force the issue as there is a field called Company in both the trade_users table and the agents table. (The former is almost redundant now, but haven't deleted or changed the name yet, as experience tells me it'll break something when I do. Kicking myself for not giving the field in the Agents table a different name.)
I've changed those back, but still have the same issue.