Warning: [mysql error 3065] Expression #1 of ORDER BY clause is not in SELECT list, references column 'zoqmzxaz_fis_gallery.fisgallery_images.date_available' which is not in SELECT list; this is incompatible with DISTINCT SELECT DISTINCT(id) FROM fisgallery_images INNER JOIN fisgallery_image_category AS ic ON id = ic.image_id WHERE date_available>=LEAST(SUBDATE(CURRENT_DATE,INTERVAL 7 DAY),SUBDATE('2016-10-28 13:23:19',INTERVAL 1 DAY)) AND (category_id NOT IN (4))ORDER BY date_available DESC,date_available DESC, file ASC, id ASC ; in /home/zoqmzxaz/public_html/fis_gallery/include/dblayer/functions_mysqli.inc.php on line 832

Fatal error: Uncaught Error: Call to a member function fetch_assoc() on boolean in /home/zoqmzxaz/public_html/fis_gallery/include/dblayer/functions_mysqli.inc.php:893 Stack trace: #0 /home/zoqmzxaz/public_html/fis_gallery/include/section_init.inc.php(460): query2array('\nSELECT DISTINC...', NULL, 'id') #1 /home/zoqmzxaz/public_html/fis_gallery/index.php(27): include('/home/zoqmzxaz/...') #2 {main} thrown in /home/zoqmzxaz/public_html/fis_gallery/include/dblayer/functions_mysqli.inc.php on line 893