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 fab2b_image_category
INNER JOIN fab2b_images ON id = image_id
WHERE
category_id = 166
AND (category_id NOT IN (12,17,18,19,21,22,23,27,37,45,50,51,55,69,83,113,114,117,126,127,128,137,139,358,141,142,143,144,148,152,156,157,162,169,173,175,176,177,179,180,182,183,339,338,337,340,203,204,341,212,213,231,232,252,259,264,266,269,270,271,272,273,275,276,277,278,279,280,335,351,352,353,354,355,356,285,286,287,289,290,291,292,294,349,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,317,318,319,320,321,322,323,324,325,326,327,328,329,330,333,344,345,346,348,350,347,178,343) AND level<=0)
ORDER BY rank ASC
; in /home/lesphotolf/lesphotosdefab.fr/include/dblayer/functions_mysqli.inc.php on line 847
Fatal error: Uncaught Error: Call to a member function fetch_assoc() on boolean in /home/lesphotolf/lesphotosdefab.fr/include/dblayer/functions_mysqli.inc.php:908
Stack trace:
#0 /home/lesphotolf/lesphotosdefab.fr/include/section_init.inc.php(317): query2array('\nSELECT DISTINC...', NULL, 'image_id')
#1 /home/lesphotolf/lesphotosdefab.fr/picture.php(11): include('/home/lesphotol...')
#2 {main}
thrown in /home/lesphotolf/lesphotosdefab.fr/include/dblayer/functions_mysqli.inc.php on line 908