Tell me, please, how to formulate a where in a SQL query so that only those rows are selected from the database with the value of 'section' equal to JURI (in the code *) is selected?
$db = JFactory::getDbo(); $query = $db->getQuery(TRUE); $section = JURI::base(TRUE); $query->select($db->quoteName(array('service', 'price', 'section'))); $query->from($db->quoteName('#__servicelist_')); $query->where('state = 1'); *$query->where($section->'section');* $query->order('service ASC'); $query->setlimit($params->get('section')); $db->setQuery($query); $result = $db->loadObjectList();