public function selectAll($table, $conditions = false, $select = '*', $limit = null)
    {
        $params = array();
        $query = "SELECT $select FROM " . $this->getTable($table) . ' ';

        if (is_array($conditions)) {
            if (!empty($conditions)) {
                $query .= "WHERE " . implode(' = ? AND ', array_keys($conditions)) . ' = ?';
                $params = array_values($conditions);
            }
        } elseif ($conditions !== false) {
            $query .= "WHERE id = :id";
            $params = array('id' => $conditions);
        }

        if ($limit) {
            $query .= " LIMIT $limit";
        }

        return $this->query($query, $params)->fetchAll();
    }