I receive unknown parsing error while executing following soql query in dev console.
SELECT Name,OwnerId from account where ID in (Select AccountId from User WHERE Id = 00536000005bkdTAAQ)
I want to look at accounts associated with this user.
You need to wrap the Id
value in single quotes ('
):
WHERE Id = '00536000005bkdTAAQ'
// ^ missing these ^
WHERE OwnerId = '005...'
.
Account
to Contact
?