$db = JFactory::getDbo(); // Get the database object $query = $db->getQuery(true) ->select('title') ->from('#__articles') ->where('id = 1'); $db->setQuery($query); $title = $db->loadResult(); echo $title; // Output the article titleIn this example, we use the loadResult method to retrieve the title of an article with an ID of 1 from the #__articles table. The loadResult method is part of the Joomla Platform database library.