MySQL Stored procedures, empty resultset problem