Warning: [mysql error 1064] You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ASC' at line 7
SELECT DISTINCT(image_id)
FROM piwigo_image_category
INNER JOIN piwigo_images ON id = image_id
WHERE
category_id = 227
AND (category_id NOT IN (6,14,37,38,39,40,116,188,189,242,243,244,245,246,247,248,249,250,251,252,253,254,315,316,317,320,326,321,312,267,268,269,270,271,272,273,274,275,276,277,278,279,280,281,282,283,284,285,286,287,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,304,305,306,307,308,309,310,323) AND level<=0)
ORDER BY rank ASC
; in /home/wsbj/public_html/px/include/dblayer/functions_mysqli.inc.php on line 847
Fatal error: Uncaught Error: Call to a member function fetch_assoc() on bool in /home/wsbj/public_html/px/include/dblayer/functions_mysqli.inc.php:908
Stack trace:
#0 /home/wsbj/public_html/px/include/section_init.inc.php(317): query2array()
#1 /home/wsbj/public_html/px/index.php(12): include('...')
#2 {main}
thrown in /home/wsbj/public_html/px/include/dblayer/functions_mysqli.inc.php on line 908