I do not see anything wrong in your examples.
If vbGallery is enabled all plugins for it should be enabled. when you disable vbGallery then you should not get any db errors. This is what I am responding about your actual error you posted here about.
I can not speak on the validity of what should or should not appear in your last posts field. That again is discussion in some other thread.
Your error here is with a modification you did yourself
Code:
Content visible to verified customers only.
This is nowhere in vbGallery and the heart of your issue
Get rid of any edits you did and your db error will go away. You applied some edit to a query as part of some mod you did and this is what is causing your issue.