When I try to do the select statement, I always get the following error:
ERROR: more than one row returned by a subquery used as an expression
Only if there's only one result, it works. Why and how to fix?
SELECT name from person p where
id = ( select prs from leader
where age(leader.lastcourse) > '1 year');