JDatabaseFactory::getQuery

Get the current query object or a new JDatabaseQuery object.