fixed exception in requery.php

This commit is contained in:
Mike Schwörer 2018-12-11 10:40:30 +01:00
parent 4a07e58c16
commit 4cde4703f2
Signed by: Mikescher
GPG Key ID: D3C7172E0A70F8CF
1 changed files with 1 additions and 1 deletions

View File

@ -28,7 +28,7 @@ if ($data['user_key'] !== $user_key) die(json_encode(['success' => false, 'errid
//-------------------
$stmt = $pdo->prepare('SELECT * FROM messages WHERE ack=0 AND sender_user_id=:uid ORDER BY `timestamp` DESC LIMIT 16');
$stmt = $pdo->prepare('SELECT * FROM messages WHERE ack=0 AND sender_user_id=:uid ORDER BY `timestamp_real` DESC LIMIT 16');
$stmt->execute(['uid' => $user_id]);
$nonacks_sql = $stmt->fetchAll(PDO::FETCH_ASSOC);