Warning: [mysql error 3065] Expression #3 of ORDER BY clause is not in SELECT list, references column '102664-dblesrubis4.piwigo_images.file' which is not in SELECT list; this is incompatible with DISTINCT SELECT DISTINCT id ,date_available FROM piwigo_images INNER JOIN piwigo_image_category ON id = image_id WHERE (category_id NOT IN (43,49)) AND date_available BETWEEN '2017-11-20' AND '2017-11-20 23:59:59' ORDER BY date_available ASC, date_available DESC, file ASC, id ASC in /storage/content/64/1102664/lesrubis.com/public_html/album-photo/include/dblayer/functions_mysqli.inc.php on line 798

Fatal error: Call to a member function fetch_assoc() on a non-object in /storage/content/64/1102664/lesrubis.com/public_html/album-photo/include/dblayer/functions_mysqli.inc.php on line 181