@@ -130,10 +130,12 @@ if($do_show == 'showentries'){ )); $table->setup(); if($table->get_sql_sort()) { $sort = $table->get_sql_sort(); + $sort = str_replace('timemodified', 'c.timemodified', $sort); //we are using two tables + $sort = str_replace('lastname', 'u.lastname', $sort); //we are using two tables }else { $sort = ''; } list($where, $params) = $table->get_sql_where();