Core/Playerbots: Fixing DB SQL query issues