PDOWrapper::selectFirst PHP Method

selectFirst() public method

- retrieve the first row returned from a select statement
public selectFirst ( $table, $params = [], array $order_by = null ) : mixed
$order_by array (optional) - an array with order by clause
return mixed - associate representing the fetched table row, false on failure
    public function selectFirst($table, $params = array(), $order_by = null)
    {
        return $this->select($table, $params, 1, null, $order_by);
    }