( ! ) Warning: [mysql error 3065] Expression #1 of ORDER BY clause is not in SELECT list, references column 'fan-gallery.piwigo_images.date_available' which is not in SELECT list; this is incompatible with DISTINCT
SELECT DISTINCT image_id
FROM piwigo_image_category INNER JOIN piwigo_images ON image_id=id
WHERE image_id IN (1826)
AND (category_id NOT IN (79)) ORDER BY date_available DESC, file ASC, id ASC
; in /wwwroot/www.drowtales.com/html/fan-gallery/include/dblayer/functions_mysql.inc.php on line 656