selectRow(' SELECT ?#, c.entry { , l.name_loc' . $_SESSION['locale'] . ' as `name_loc` , l.subname_loc' . $_SESSION['locale'] . ' as `subname_loc` , ? } FROM ' . AOWOW . '.aowow_factiontemplate, ' . WORLD . '.creature_template c { LEFT JOIN (' . WORLD . '.locales_creature l) ON l.entry=c.entry AND ? } WHERE c.entry=?d LIMIT 1 ', $npc_cols[0], ($_SESSION['locale'] > 0) ? 1 : DBSIMPLE_SKIP, ($_SESSION['locale'] > 0) ? 1 : DBSIMPLE_SKIP, $id ); // AND factiontemplateID=FactionAlliance return creatureinfo2($row); }