I've had that happen a few times, but there was no rhyme nor reason, did the same queries after getting this error and they worked.