SELECT
id,
full_name,
credential,
credential_type as "credential_type: _",
time_created,
last_updated
FROM agent where id = ANY($1)
ORDER BY time_created DESC;