Fix the php-phalcon queries test validation

sanitize the queries parameter as requested by @msmith-techempower at #672