$categories_id_zero->count() instead of $categories_id_zero->RecordCount()
Old code, I was young and (more) ignorant.