$ir = $db->query(sprintf('SELECT * FROM dd_games WHERE category=\'%u\' LIMIT 0,'.$limitboxgames.'', $row['ID']));
$ir = $db->query(sprintf('SELECT * FROM dd_games WHERE category=\'%u\' ORDER BY ID desc LIMIT 0,'.$limitboxgames.'', $row['ID']));
$ir = $db->query(sprintf('SELECT * FROM dd_games WHERE category=\'%u\' ORDER BY rand () LIMIT 0,'.$limitboxgames.'', $row['ID']));