Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 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 'Type<>2 AND Locked<>1 AND ORDER BY RAND() LIMIT 1' at line 1' in /home/sewcrates/sewcrates.com/code/database/DatabaseDH.php:52 Stack trace: #0 /home/sewcrates/sewcrates.com/code/database/DatabaseDH.php(52): PDOStatement->execute(Array) #1 /home/sewcrates/sewcrates.com/code/query/Query.php(29): Sewcrates\DatabaseDH::Query('SELECT * FROM P...', Array) #2 /home/sewcrates/sewcrates.com/code/query/PostQuery.php(31): Sewcrates\Query->Query('SELECT * FROM P...') #3 /home/sewcrates/sewcrates.com/code/Main.php(111): Sewcrates\PostQuery->FetchRandom() #4 /home/sewcrates/sewcrates.com/code/Main.php(47): Sewcrates\Main->CheckForRandom() #5 /home/sewcrates/sewcrates.com/code/Main.php(20): Sewcrates\Main->Parse() #6 /home/sewcrates/sewcrates.com/driver.php(15): Sewcrates\Main->__construc in /home/sewcrates/sewcrates.com/code/database/DatabaseDH.php on line 52