Warning: [mysql error 3065] Expression #1 of ORDER BY clause is not in SELECT list, references column 'piwigo.piwigo_image_category.rank' which is not in SELECT list; this is incompatible with DISTINCT SELECT DISTINCT(image_id) FROM piwigo_image_category INNER JOIN piwigo_images ON id = image_id WHERE category_id = 38 AND (category_id NOT IN (14,78,130,94,145)) ORDER BY rank ASC ; in /data2/www/lighttpd/piwigo/include/dblayer/functions_mysqli.inc.php on line 832

Fatal error: Call to a member function fetch_assoc() on boolean in /data2/www/lighttpd/piwigo/include/dblayer/functions_mysqli.inc.php on line 893