For some reason when I go to the 2nd level categories I get a critical error -
There was an error while processing a database query. When I put it on debug mode it says this:
-----
While executing query 'SELECT a.aid, a.title, a.description, a.thumb, a.keyword, category, visibility, filepath, filename, url_prefix, pwidth, pheight, a.owner FROM cpg_albums AS a LEFT JOIN cpg_pictures AS p ON a.thumb=p.pid WHERE a.category = 37 ORDER BY LIMIT 0,1' in index.php on line 778
mySQL error: 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,1' at line 1
File: /home/public_html/pictures/include/functions.inc.php - Line: 272
------
Thanks for any help you can give me!