```php
<?php

require_once '../../core/api_bootstrap.php';

try {

$db = new Database();
$conn = $db->connect();

$query="

SELECT

k.id,
k.provider_id,
p.name,
p.phone,
k.aadhaar_number,
k.pan_number,
k.verification_status,
k.submitted_at

FROM provider_kyc k

JOIN providers p
ON k.provider_id = p.id

WHERE k.verification_status='pending'

ORDER BY k.submitted_at DESC

";

$stmt=$conn->prepare($query);
$stmt->execute();

$kyc=$stmt->fetchAll();

Response::success($kyc);

}
catch(Exception $e){

Logger::log("system.log",$e->getMessage());
Response::error("Server error",500);

}