Aerospike is a key-value store so if you’re storing it with that primary key, you just get it with that primary key.
You don’t need to perform a query, that’s only used for selecting multiple records that match a secondary index or a UDF method.
Just get the record you want directly by the key in the driver you’re using.