[ai-0.36-63] Core/Playerbots: Fixing DB SQL query issues. Thanks to Kittnz. [trinity only]