I'm not exactly sure why, but the problem wasn't the code, it was one of the fields. It was in both tables, but for some reason when I excluded it from the query everything works perfectly. Luckily, I don't even need that field (for reference, it was an "attachments" field type).
Thanks for the...