Fatal error: Uncaught PDOException: SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND OrderStatus <> 4 ORDER BY OrderId DESC' at line 1 in /home/sokonikwetu/domains/sokonikwetu.com/public_html/models/Order.php:29
Stack trace:
#0 /home/sokonikwetu/domains/sokonikwetu.com/public_html/models/Order.php(29): PDOStatement->execute()
#1 /home/sokonikwetu/domains/sokonikwetu.com/public_html/views/account.php(23): Order->fetchByUser()
#2 {main}
thrown in /home/sokonikwetu/domains/sokonikwetu.com/public_html/models/Order.php on line 29