Warning: [mysql error 3065] Expression #1 of ORDER BY clause is not in SELECT list, references column 'zoqmzxaz_fis_gallery.fisgallery_images.rating_score' 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 rating_score IS NOT NULL AND (category_id NOT IN (4)) ORDER BY rating_score DESC, id DESC LIMIT 15 ; 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(525): 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