diff --git a/moderation/moderation.py b/moderation/moderation.py index 9ef752d..23a2d59 100644 --- a/moderation/moderation.py +++ b/moderation/moderation.py @@ -451,7 +451,10 @@ class Moderation(commands.Cog): database = await self.connect() cursor = database.cursor() if target: - query = "SELECT * FROM moderation_%s WHERE target_id = %s" + query = """SELECT * + FROM moderation_%s + WHERE target_id = %s + ORDER BY moderation_id DESC;""" cursor.execute(query, (interaction.guild.id, target.id)) results = cursor.fetchall() result_dict_list = []