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 8
SELECT id
FROM piwigo_pphimages i
INNER JOIN piwigo_pphimage_category ic ON id=ic.image_id
WHERE category_id IN (35,106)
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)
GROUP BY id
HAVING COUNT(DISTINCT category_id)=2
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/functions_category.inc.php(654): query2array('\nSELECT id\n FR...', NULL, 'id')
#1 /home/phototheb/www/piwigo/include/section_init.inc.php(246): get_image_ids_for_categories(Array)
#2 /home/phototheb/www/piwigo/index.php(12): include('/home/phototheb...')
#3 {main}
thrown in /home/phototheb/www/piwigo/include/dblayer/functions_mysqli.inc.php on line 908