class.udb.php:127 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 '' at line 1

SELECT * FROM `galleries` WHERE pageID=
1: class.udb.php:183 udb::query()
2: inc_defineItem.php:5 udb::full_list()
3: index.php:146 include()