Notice: Trying to access array offset on value of type bool in /home/gzes/ on line 31

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 `post_id` = 'redirects') LIMIT 1' at line 1 in /home/gzes/ Stack trace: #0 /home/gzes/ PDOStatement->execute() #1 /home/gzes/ DatabaseData->read('wp_posts', NULL, NULL, Array, NULL, NULL, Array) #2 /home/gzes/ get_database_data(Object(Rep), 'wp_posts', NULL, NULL, Array, NULL, NULL, Array) #3 /home/gzes/ include('/home/gzes/apos...') #4 /home/gzes/ in /home/gzes/ on line 167