FIELD() Function in MySQL
FIELD() function : This function in MySQL is used to return the index position of a specified value in a list of given values. For example, if the given list is ("3", "1", "2") and the value is "1" for which index position is going to be search, then this function will return 2 as the index position