We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 44231
    • 126 Posts
    hi guys,

    I'm just wondering how do I determine which snippet has an error.

    the error looks like this..

    [2014-09-17 08:55:54] (ERROR @ /index.php) Error 42000 executing statement: 
    Array
    (
        [0] => 42000
        [1] => 1064
        [2] => 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 'GROUP BY Tblbook.system_brand_id' at line 1
    )
    


    thanks smiley
      • 22303 MODX Staff
      • 10,725 Posts
      Well, are you using a snippet that issues a query to a table known as "Tblbook" ? That'd be the first clue to follow...
        • 44231
        • 126 Posts
        thanks for the reply smiley

        yes, I have a couple of snippet that uses the same table, but what if I use for example "Tblbook" in all of my snippet, do I need to scan all of the snippet?and every line?