If the row is still set to 1, then no rows meet the WHERE criteria.
if ( row = 1 ) then put 'No rows meet the WHERE clause criteria'; return;