Added .replace('%s', self.sql.query['placeholder']) in more places