Error on page
FAILURE
- Query: select photo_id from photos where gallery_id=42 order by order_id desc limit -36, 36
- Class: Gallery
- File: /gallery.php
- Num: 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 '-36, 36' at line 1
Success
- Query: select count(photo_id), max(order_id) from photos where gallery_id=42
- Class: Gallery
- File: /gallery.php
Success
- Query: select directory,realname,reverse from users where user_id="1"
- Class: Gallery
- File: /gallery.php
Success
- Query: select max(order_id) from gallery g where g.user_id=1
- Class: Gallery
- File: /gallery.php
Success
- Query: select gallery_id,user_id,description,title,order_id,photo_id,reverse from gallery where gallery_id=42
- Class: Gallery
- File: /gallery.php