ERROR catch : Exception (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 'order by `orderid`' at line 1
#0 /home/philippeX/www2025/core/core.php(128): mysqli->query('select count(*)...')
#1 /home/philippeX/www2025/core/core.php(189): model->fetchOne('select count(*)...')
#2 /home/philippeX/www2025/controler/main_controler.php(54): model->getAjaxPhotosOfFolder(false)
#3 /home/philippeX/www2025/controler/main_controler.php(642): main_controler->formatePhotosAction(false)
#4 /home/philippeX/www2025/core/inc/autoLoader.php(70): main_controler->portfolioAction()
#5 /home/philippeX/www2025/public/index.php(4): include('/home/philippeX...')
#6 {main}