Issue #3128761 by Beakerboy, daffie, alexpott, xjm: Duplicate timestamp placeholder in statistics query (cherry picked from commit 07dd3e2c)