fix subquery syntax error with mysql