Bug with sql statement keywords