Catch the -1 as $limit

-1 generate a database error exception