<?php $mysqli = new mysqli("127.0.0.1", "USER", "PASWOORD", "DB NAME");
$mysqli->query("DELETE FROM `amx_amxadmins` WHERE `expired` < '".time()."' AND `days` != 0");
$mysqli->query("DELETE FROM `amx_admins_servers` WHERE `admin_id` NOT IN (SELECT a.id FROM `amx_amxadmins` a)");
?>
*/20 * * * * php /var/www/expired.php