$select = "username <> 'guest' AND deleted = 0 AND confirmed = '1' AND id NOT IN (1,2,5,6,1878,3605)";
$sort = "ORDER BY lastaccess DESC";
$limit = "LIMIT 0,99999";
$fields = "*";
$count = count(get_records_select("user", "$select $sort $limit", '', $fields));
error($count);
I find that the get_records_select call hangs. If I replace the 99999 in $limit by 1403, the get_records_select call succeeds, whereas with 1404 it fails. If I set $sort="", then it succeeds with 1408 and fails with 1409.
In Moodle version 1.2, the get_records_select call succeeds with 2460 and fails with 2461. I guess that this is some kind of configuration problem with MySQL/php/adodb? Any suggestions?
TIA,
Zig