queries the same order as php package