void ZoneDatabase::AssignGrid(Client *client, float x, float y, uint32 grid)
should be:
Change first query to:
Code:
std::string query = StringFormat("SELECT id, x, y FROM spawn2 WHERE zone = '%s' AND x = %i AND y = %i",
zone->GetShortName(), x, y);
This will help you temporarily until that section of the code is cleaned up.