postgres limit bug

http://www.board3.de/viewtopic.php?f=8&p=2555#p2555
This commit is contained in:
Ice
2008-03-08 15:19:15 +00:00
parent 31345ddbf3
commit 4f25f924b2

View File

@@ -23,9 +23,9 @@ if (!defined('IN_PORTAL'))
$sql = 'SELECT *
FROM ' . USERS_TABLE . '
WHERE user_type <> ' . USER_IGNORE . '
AND user_inactive_time = 0
AND user_type <> ' . USER_INACTIVE . '
ORDER BY RAND()
LIMIT 0,1';
LIMIT 1';
$result = $db->sql_query($sql);
$row = $db->sql_fetchrow($result);