If I understood you right, then here might be what you are looking for:
[code] $db =& eZDB::instance();
$asObject = true;
$sqlText = "SELECT ezcontentobject.id, ezcontentobject.owner_id, ezcontentobject.current_version FROM ezcontentobject WHERE ezcontentobject.contentclass_id = '15' and ezcontentobject.owner_id = '$userID' and ezcontentobject.status = '1' ORDER BY ezcontentobject.id limit 1"; $rows =& $db->arrayQuery( $sqlText );