SQL Function Reference

LEAST
Returns the minimum value from the list
MySQL
LEAST(num [,num])
Examples
MySQL
SELECT LEAST(1,2,-1);