I managed to stop the sql errors by disabling the 2.3.4 gallery I installed yesterday.
vBGallery 2.3.4 (migrated from the lastest previous version)
vBulletin 3.7
Here's an example of sql errors, take a look, every query has one userid missing:
Code:
Content visible to verified customers only.
Code:
Content visible to verified customers only.
Code:
Content visible to verified customers only.
And so on... I have the sql error log full of this.