[-] MO : Autoupgrade, Fix bug #PSCSX-1788, bad sql query