Fix bug in mySQL support for Quotes plugin