Toto mozno bude fungovat "select count(id) as pocet, id from TABLE limit x,50" - ale vobec sa mi to nepaci...