<?php
$query = sprintf("Select codigo_modelo, nome From modelos Where codigo_modelo in (%s)", ',',
function() {
static $x = 0;
return ':cod_'.$x++;
},$modelos
)
)
);
PD9waHAKCiAgICAkbW9kZWxvcyA9IGV4cGxvZGUoIiwiLCIxLDIsMyw0Iik7CiAgICAgICAgJHF1ZXJ5ID0gc3ByaW50ZigiU2VsZWN0IGNvZGlnb19tb2RlbG8sIG5vbWUgRnJvbSBtb2RlbG9zIFdoZXJlIGNvZGlnb19tb2RlbG8gaW4gKCVzKSIsCiAgICAgICAgICAgICAgICBpbXBsb2RlKAogICAgICAgICAgICAgICAgJywnLAogICAgICAgICAgICAgICAgYXJyYXlfbWFwKAogICAgICAgICAgICAgICAgICAgIGZ1bmN0aW9uKCkgewogICAgICAgICAgICAgICAgICAgICAgIHN0YXRpYyAkeCA9IDA7CiAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuICc6Y29kXycuJHgrKzsKICAgICAgICAgICAgICAgICAgICB9LCRtb2RlbG9zCiAgICAgICAgICAgICAgICApCiAgICAgICAgICAgICkKICAgICAgICApOwogICAgICAgIGVjaG8gJHF1ZXJ5OyBleGl0Ow==