Hello all.
Basically I'm trying to get the name of the parent and the ID (it's natural state) in one query.
I'm not sure of the best method or how to form the proper query, unless it is a sub-select.
Should I use a sub-select?
Here is my code:
/** get all of the categories **/
$SQL = "SELECT c.id, c.parent, c.location, c.name";
$SQL .= " FROM ".DB_PREFIX."categories AS c ORDER BY c.id ASC";
$cats = $SD_DB->fetchAll($SQL);
Thanks in advance for any tips.