当前位置:首页 > 经验分享 > 列表
    系统发生错误

    :(

    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 'limit 0, 15' at line 1 [ SQL语句 ] : SELECT * FROM `fl_article` a LEFT JOIN `fl_article_attr` b ON ( b.bid = a.id) LEFT JOIN `fl_attr` c on ( c.tid = b.aid ) WHERE ( del!=1 and cid in(57)) GROUP BY a.id ORDER BY (case when aid=2 then 0 ELSE 1 END) , limit 0, 15

    错误位置

    FILE: /data/home/syu5534870001/htdocs/ThinkPHP/Library/Think/Db/Driver.class.php  LINE: 350

    TRACE

    #0 /data/home/syu5534870001/htdocs/ThinkPHP/Library/Think/Db/Driver.class.php(350): E('1064:You have a...')
    #1 /data/home/syu5534870001/htdocs/ThinkPHP/Library/Think/Db/Driver.class.php(180): Think\Db\Driver->error()
    #2 /data/home/syu5534870001/htdocs/ThinkPHP/Library/Think/Model.class.php(1382): Think\Db\Driver->query('SELECT * FROM `...')
    #3 /data/home/syu5534870001/htdocs/Index/Home/Model/ArticleRelationModel.class.php(36): Think\Model->query('SELECT * FROM `...')
    #4 /data/home/syu5534870001/htdocs/Index/Runtime/Cache/Home/1a3b49da01f6e3bff02b923b45424bf0.php(81): Home\Model\ArticleRelationModel->getArtic(0, ' del!=1 and ci...', Object(Think\Page))
    #5 /data/home/syu5534870001/htdocs/ThinkPHP/Library/Think/Storage/Driver/File.class.php(80): include('/data/home/syu5...')
    #6 [internal function]: Think\Storage\Driver\File->load('./Index/Runtime...', Array, NULL, 'tpl')
    #7 /data/home/syu5534870001/htdocs/ThinkPHP/Library/Think/Storage.class.php(37): call_user_func_array(Array, Array)
    #8 /data/home/syu5534870001/htdocs/ThinkPHP/Library/Think/Template.class.php(77): Think\Storage::__callstatic('load', Array)
    #9 /data/home/syu5534870001/htdocs/ThinkPHP/Library/Think/Template.class.php(77): Think\Storage::load('./Index/Runtime...', Array, NULL, 'tpl')
    #10 /data/home/syu5534870001/htdocs/ThinkPHP/Library/Behavior/ParseTemplateBehavior.class.php(32): Think\Template->fetch('./Index/Home/Vi...', Array, '')
    #11 /data/home/syu5534870001/htdocs/ThinkPHP/Library/Think/Hook.class.php(119): Behavior\ParseTemplateBehavior->run(Array)
    #12 /data/home/syu5534870001/htdocs/ThinkPHP/Library/Think/Hook.class.php(89): Think\Hook::exec('Behavior\\ParseT...', 'view_parse', Array)
    #13 /data/home/syu5534870001/htdocs/ThinkPHP/Library/Think/View.class.php(126): Think\Hook::listen('view_parse', Array)
    #14 /data/home/syu5534870001/htdocs/ThinkPHP/Library/Think/View.class.php(72): Think\View->fetch(':list', '', '')
    #15 /data/home/syu5534870001/htdocs/ThinkPHP/Library/Think/Controller.class.php(56): Think\View->display(':list', '', '', '', '')
    #16 /data/home/syu5534870001/htdocs/Index/Home/Controller/ListController.class.php(15): Think\Controller->display(':list')
    #17 [internal function]: Home\Controller\ListController->index()
    #18 /data/home/syu5534870001/htdocs/ThinkPHP/Library/Think/App.class.php(173): ReflectionMethod->invoke(Object(Home\Controller\ListController))
    #19 /data/home/syu5534870001/htdocs/ThinkPHP/Library/Think/App.class.php(110): Think\App::invokeAction(Object(Home\Controller\ListController), 'index')
    #20 /data/home/syu5534870001/htdocs/ThinkPHP/Library/Think/App.class.php(204): Think\App::exec()
    #21 /data/home/syu5534870001/htdocs/ThinkPHP/Library/Think/Think.class.php(120): Think\App::run()
    #22 /data/home/syu5534870001/htdocs/ThinkPHP/ThinkPHP.php(97): Think\Think::start()
    #23 /data/home/syu5534870001/htdocs/index.php(25): require('/data/home/syu5...')
    #24 {main}