Deleting stuff

This commit is contained in:
2025-08-24 17:54:37 -07:00
parent fb0f3cc112
commit d698d4ba97
3 changed files with 33 additions and 4 deletions

View File

@@ -7,7 +7,7 @@ $stmt = $conn->prepare("
SELECT c.id, c.content, u.username
FROM chats c
JOIN users u ON c.userId = u.id
WHERE u.banned = 0 AND c.deleted = 0
WHERE u.banned = 0 AND c.deleted_at = 0
ORDER BY c.id ASC LIMIT 50
");
$stmt->execute();