src/SnooPHP/Model/Model.php
public static function select($queryString = "", array $queryParams = [])
	{
		$tableName = static::tableName();

		$rows = Db::query("
			select $tableName.*
			from $tableName
			$queryString
		", $queryParams, static::getDbName());

		if ($rows === false)
			return false;
		if (empty($rows))
			return new Collection([]);

		// Populate models
		$collection = [];
		foreach ($rows as $row)
		{
			// Populate model
			$model = new static;
			foreach ($row as $column => $val) $model->$column = $model->decodeValue($val, $column);
			$collection[] = $model;
		}
		
		return new Collection($collection);
	}
public static function select($queryString = "", array $queryParams = [])
	{
		$tableName = static::tableName();

		$rows = Db::query("
			select $tableName.*
			from $tableName
			$queryString
		", $queryParams, static::getDbName());

		if ($rows === false)
			return false;
		if (empty($rows))
			return new Collection([]);

		// Populate models
		$collection = [];
		foreach ($rows as $row)
		{
			// Populate model
			$model = new static;
			foreach ($row as $column => $val) $model->$column = $model->decodeValue($val, $column);
			$collection[] = $model;
		}
		
		return new Collection($collection);
	}
Run query on this table and return model

@param string	$queryString query string
@param array		$queryParams query parameters

@return Collection|bool return collection of results or false if fails