Fix error total records when using summary on php server

Using php server ans summary records, total count is affected on
infinite scroll. When move the offset to query next records, total
records are different to total records from php query with a popup
sending to inicial records again.