Warning: [mysql error 3065] Expression #1 of ORDER BY clause is not in SELECT list, references column 'netoiler_picture.piwi_images.date_available' which is not in SELECT list; this is incompatible with DISTINCT SELECT DISTINCT(id) FROM piwi_images INNER JOIN piwi_image_category AS ic ON id = ic.image_id WHERE date_available>=LEAST(SUBDATE(CURRENT_DATE,INTERVAL 7 DAY),SUBDATE('2020-04-20 10:49:47',INTERVAL 1 DAY)) AND (category_id NOT IN (95))ORDER BY date_available DESC,name ASC, file ASC, id ASC ; in /var/www/vhosts/pro-oiler.net/public_html/gallerij/include/dblayer/functions_mysqli.inc.php on line 798

Fatal error: Call to a member function fetch_assoc() on boolean in /var/www/vhosts/pro-oiler.net/public_html/gallerij/include/dblayer/functions_mysqli.inc.php on line 181