- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
public static function getUserByOwnerId($ownerId)
{
$user = DB::query(Database::SELECT,
'
SELECT
users.username, users.email, users.refer
FROM
owners
WHERE
owners.user_id='.Model_Index::escape($ownerId)
)
->execute();
return $user;
}