select t.*,case when x.name = '' or x.name is null then cast(x.uid as binary) else x.name end as x_name,x.creation_time as x_ctime,x.last_updated as x_updated,x.parent_id as x_parent_id,x.visible as x_visible from pages t, x_objects x where x.uid=t.uid and x.visible in (1,0) and x.uid= order by x.priority: 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 'order by x.priority' at line 1/usr/home/unityinfo/www/libs/userpage.inc.php: get_rs @ line 304
/usr/home/unityinfo/www/cfg.php: GetObjects @ line 437
/usr/home/unityinfo/www/_t/t.php: BreadCrumb @ line 54
/usr/home/unityinfo/www/cfg.php: include @ line 347
/usr/home/unityinfo/www/libs/userpage.inc.php: Body @ line 19
/usr/home/unityinfo/www/libs/project.inc.php: Run @ line 1696
/usr/home/unityinfo/www/index0.php: Run @ line 3