JDatabaseQuery::quoteName

Wrap an SQL statement identifier name such as column, table or database names in quotes to prevent injection risks and reserved word conflicts.

This method is provided for use where the query object is passed to a function for modification. If you have direct access to the database object, it is recommended you use the quoteName method directly. Note that 'qn' is an alias for this method as it is in JDatabaseDriver. Usage: $query->quoteName('#__a'); $query->qn('#__a');