Fixed query in clients.php