Warning: [mysql error 3065] Expression #2 of ORDER BY clause is not in SELECT list, references column 'althotel_galeriafotos.galeriafotos_images.date_available' which is not in SELECT list; this is incompatible with DISTINCT SELECT DISTINCT id ,date_creation FROM galeriafotos_images INNER JOIN galeriafotos_image_category ON id = image_id WHERE (category_id NOT IN (8,7,6)) AND date_creation IS NOT NULL ORDER BY date_creation DESC, date_available DESC, file ASC, id ASC in /home/althotel/public_html/galeriafotos/include/dblayer/functions_mysqli.inc.php on line 834

Fatal error: Call to a member function fetch_assoc() on boolean in /home/althotel/public_html/galeriafotos/include/dblayer/functions_mysqli.inc.php on line 181