Fix exception call on certain calls to getIds. Add additional parameter to getIdsFrom
Use mysql's ORDER BY rather than php's array_reverse
Utilize additional getIdsFrom parameter