private function bind($params, &$stmt) { foreach ($params as $field => $value) { $stmt->bindValue($field, $value); } }