Os literais de caracteres são colocados entre aspas simples:
SELECT *
FROM lawyer
where name_url = 'john-doe';
Consulte o manual para obter detalhes:
https://www.postgresql.org/docs/current/static/sql-syntax-lexical.html#SQL-SYNTAX-CONSTANTS
SELECT *
FROM lawyer
where name_url = 'john-doe';