src/Table.php
public function rawSelectOne(Query $query, $join = 'all')
        {
            $query->setTable($this);
            $query->setupJoinTables($join);
            $query->setLimit(1);
            $query->generateSelectSQL();

            $resultset = Statement::getPreparedStatement($query)->execute();
            $resultset->next();

            return $resultset->getCurrentRow();
        }
public function rawSelectOne(Query $query, $join = 'all')
        {
            $query->setTable($this);
            $query->setupJoinTables($join);
            $query->setLimit(1);
            $query->generateSelectSQL();

            $resultset = Statement::getPreparedStatement($query)->execute();
            $resultset->next();

            return $resultset->getCurrentRow();
        }
public function rawSelectOne ( Query $ query , $ join = 'all' ) { $ query -> setTable ( $ this ) ; $ query -> setupJoinTables ( $ join ) ; $ query -> setLimit ( 1 ) ; $ query -> generateSelectSQL ( ) ; $ resultset = Statement :: getPreparedStatement ( $ query ) -> execute ( ) ; $ resultset -> next ( ) ; return $ resultset -> getCurrentRow ( ) ; }
Selects one row from the table based on the given criteria

@param Query $query
@param mixed $join

@return Row
@throws Exception
Selects one row from the table based on the given criteria