Changed SQL query to remove like wildcard characters.