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 MySQL server version for the right syntax to use near 'order by rand() LIMIT 10' at line 1 in /home/spandexhouse/public_html/codelibrary/inc/database_class.php:540 Stack trace: #0 /home/spandexhouse/public_html/codelibrary/inc/database_class.php(540): PDOStatement->execute() #1 /home/spandexhouse/public_html/product.php(21): database_class->getAnyTableAllData('product', 'and status = '1...') #2 {main} thrown in /home/spandexhouse/public_html/codelibrary/inc/database_class.php on line 540