static function getPlace($id) { $pdo = PDOBuilder::getPDO(); $stmt = $pdo->prepare("SELECT * FROM PLACES WHERE ID = :id"); if ($stmt->execute(array(':id' => $id))) { if ($row = $stmt->fetch()) { return PlacesService::buildDBFloor($row, $pdo); } } return null; }