Refix SQL Statement