Warning: [mysql error 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 'ASC' at line 7
SELECT DISTINCT(image_id)
FROM piwigo_pphimage_category
INNER JOIN piwigo_pphimages ON id = image_id
WHERE
category_id = 510
AND (category_id NOT IN (398,93,119,123,125,133,132,134,135,138,779,143,147,148,163,165,168,169,174,175,179,744,375,377,376,650,652,600,651,662,649,1152,1391,1392,1124,1191,1362,1374,1139,1222,1221,1356,1274,151,1167,60,419,525,351,360,32,371,36,1288,1224,934,1202,877,874,878,876,1168,1270,1268,1252,1266,1010,1339,1341,1343,1342,1340,1338,231,1332,1336,1333,1337,1335,1334,812,1324,1325,1326,787,788,789,1349,46,309,296,298,294,606,508,509,688,683,740,687) AND level<=1)
ORDER BY name ASC, file ASC, rank ASC
; in /home/phototheb/www/piwigo/include/dblayer/functions_mysqli.inc.php on line 847
Fatal error: Uncaught Error: Call to a member function fetch_assoc() on bool in /home/phototheb/www/piwigo/include/dblayer/functions_mysqli.inc.php:908
Stack trace:
#0 /home/phototheb/www/piwigo/include/section_init.inc.php(317): query2array('\nSELECT DISTINC...', NULL, 'image_id')
#1 /home/phototheb/www/piwigo/picture.php(11): include('/home/phototheb...')
#2 {main}
thrown in /home/phototheb/www/piwigo/include/dblayer/functions_mysqli.inc.php on line 908