KRACOEUS-7512: Fixing bad SQL Statement