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 'INNER JOIN post_tags pt ON pt.post_id=p.id AND pt.tag_id=? ORDER BY p.publish...' at line 5 in C:\xampp\htdocs\v1-9\v8\includes\functions.php:424
Stack trace:
#0 C:\xampp\htdocs\v1-9\v8\includes\functions.php(424): PDO->prepare('SELECT p.*, c.n...')
#1 C:\xampp\htdocs\v1-9\v8\etiket.php(14): getPostsByTag(6, 24)
#2 {main}
thrown in C:\xampp\htdocs\v1-9\v8\includes\functions.php on line 424