I am trying to get an older Joomla component (that uses DeepL to translate) to work and it seems to go fine until I try to run the translator. I've troubleshot it down to this piece of code that is throwing the error:
Unknown column '*' in 'field list'
. The code:
$query = $db->getQuery(true);
$query->select($db->quoteName('*'))
->from($db->quoteName($query_details['cat_table']))
->where($db->quoteName('parent_id') . ' != 0')
->where($db->quoteName('extension') . ' = ' . $db->quote($query_details['component']));
$db->setQuery($query);
$categories = $db->loadObjectList();
$cleanedCategories = array();
foreach ($categories as $cat ) {
$cleanedCategories [$cat->id] = $cat->title;
}
Any help getting this work would be greatly appreciated by many!