MysqliDb::rawQueryOne PHP Method

rawQueryOne() public method

Note that function do not add 'limit 1' to the query by itself Same idea as getOne()
public rawQueryOne ( string $query, array $bindParams = null ) : array | null
$query string User-provided query to execute.
$bindParams array Variables array to bind to the SQL statement.
return array | null Contains the returned row from the query.
    public function rawQueryOne($query, $bindParams = null)
    {
        $res = $this->rawQuery($query, $bindParams);
        if (is_array($res) && isset($res[0])) {
            return $res[0];
        }
        return null;
    }