function doSelect(PDO $conn = null) {
		$q = clone $this;

		if (!$q->getTable()) {
			throw new RuntimeException('No table specified.');
		}

		$q->setAction(self::ACTION_SELECT);
		return $q->getQuery($conn)->bindAndExecute();
	}
function doSelect(PDO $conn = null) {
		$q = clone $this;

		if (!$q->getTable()) {
			throw new RuntimeException('No table specified.');
		}

		$q->setAction(self::ACTION_SELECT);
		return $q->getQuery($conn)->bindAndExecute();
	}
function doSelect ( PDO $ conn = null ) { $ q = clone $ this ; if ( ! $ q -> getTable ( ) ) { throw new RuntimeException ( 'No table specified.' ) ; } $ q -> setAction ( self :: ACTION_SELECT ) ; return $ q -> getQuery ( $ conn ) -> bindAndExecute ( ) ; }
Executes SELECT query and returns a result set.
@return \PDOStatement
@param $conn PDO[optional]
Executes SELECT query and returns a result set .