FETCH_ASSOC option fetches the rows into an associative array like:
Array
(
[0] => Array
(
[id] => 1
[name] => name1
)
[1] => Array
(
[id] => 2
[name] => name2
)
)
If you want top get all the users, who have a corresponding record in users_roles table, you can use this request:
SELECT
*
FROM
users
INNER JOIN
users_roles
ON
users_roles.id=users.user_role_id
ORDER BY
users.id DESC