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 is_active = 1 AND id != ? ORDER BY RAND()' at line 1 in /home/hakanakc/say-insaat.com/inc/db.php:59
Stack trace:
#0 /home/hakanakc/say-insaat.com/inc/db.php(59): PDO->prepare('SELECT * FROM p...')
#1 /home/hakanakc/say-insaat.com/inc/db.php(86): Database->query('SELECT * FROM p...', Array)
#2 /home/hakanakc/say-insaat.com/project-single.php(31): Database->fetchAll('SELECT * FROM p...', Array)
#3 {main}
thrown in /home/hakanakc/say-insaat.com/inc/db.php on line 59