[PHQL] Add placeholders support to LIMIT

See #1011

Though the tests are passed, I would still consider this implementation beta.

Please review the code carefully in case I am missing something.