Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 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 'order by ordering,id desc limit 3' at line 1' in /www/wwwroot/xinyao.com/inc/class.database.php:123
Stack trace:
#0 /www/wwwroot/xinyao.com/inc/class.database.php(123): PDO->query('select * from d...')
#1 /www/wwwroot/xinyao.com/skins/doccms_model_1/parts/picture/picture_view_0.php(48): DocDB->get_results('select * from d...', 2)
#2 /www/wwwroot/xinyao.com/loader/load.php(80): require_once('/www/wwwroot/xi...')
#3 /www/wwwroot/xinyao.com/skins/doccms_model_1/common/designer.php(36): sys_parts(0)
#4 /www/wwwroot/xinyao.com/loader/load.php(68): require_once('/www/wwwroot/xi...')
#5 /www/wwwroot/xinyao.com/loader/doc.php(151): PAGE_load('/www/wwwroot/xi...')
#6 /www/wwwroot/xinyao.com/loader/load.php(20): require_once('/www/wwwroot/xi...')
#7 /www/wwwroot/xinyao.com/index.php(2 in /www/wwwroot/xinyao.com/inc/class.database.php on line 123