function _drop_temporary_tables($query) { if ('DROP TABLE' === substr(trim($query), 0, 10)) { return substr_replace(trim($query), 'DROP TEMPORARY TABLE', 0, 10); } return $query; }