<?php
$query = "SELECT * FROM tabela WHERE ID IN ($ids)";
echo $query;
PD9waHAKCiRhcnJheSA9IGFycmF5KDIsMyw1KTsKCiRpZHMgPSBpbXBsb2RlKCIsIiwgJGFycmF5KTsKICAgIAokcXVlcnkgPSAiU0VMRUNUICogRlJPTSB0YWJlbGEgV0hFUkUgSUQgSU4gKCRpZHMpIjsKICAgIAplY2hvICRxdWVyeTs=