The error is: 1242 - Subquery returns more than 1 row