my $data = qq[SELECT id, url, images, Total FROM temp WHERE id > (SELECT MAX(id) - 10) ORDER BY Total DESC];