implement  tip from Mike, corrected the sql statement