A PHP Error was encountered

Severity: Notice

Message: Trying to get property 'id' of non-object

Filename: controllers/Gallery.php

Line Number: 15

Backtrace:

File: /home/cmentarze/domains/cmentarze.jasonek.pl/application/controllers/Gallery.php
Line: 15
Function: _error_handler

File: /home/cmentarze/domains/cmentarze.jasonek.pl/public_html/index.php
Line: 337
Function: require_once

A PHP Error was encountered

Severity: Notice

Message: Trying to get property 'number' of non-object

Filename: controllers/Gallery.php

Line Number: 22

Backtrace:

File: /home/cmentarze/domains/cmentarze.jasonek.pl/application/controllers/Gallery.php
Line: 22
Function: _error_handler

File: /home/cmentarze/domains/cmentarze.jasonek.pl/public_html/index.php
Line: 337
Function: require_once

Database Error

Wystąpił błąd bazy danych.

Error Number: 1064

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'AND `active` = 1 ORDER BY `number` LIMIT 1' at line 4

SELECT * FROM `gallery` WHERE `number` > AND `active` = 1 ORDER BY `number` LIMIT 1

Filename: core/MY_Model.php

Line Number: 35