query("
SELECT id,name
FROM actions
")->assoc_results;
foreach($rows as $action){
$actions[intval($action['id'])] = $action['name'];
}
$activities = Bugs::$sql->query("
SELECT date,
a_id,
data
FROM activities
ORDER BY date DESC
LIMIT ?,?
",'ii',$context->page,$context->amount)->assoc_results;
?>