Prepared query - get single record