issue #512: bind parameters for limit