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 'AND id !=24 ORDER BY RAND() LIMIT 10' at line 1 in /home1/carrieregsales/public_html/init.php:222
Stack trace:
#0 /home1/carrieregsales/public_html/init.php(222): PDOStatement->execute()
#1 /home1/carrieregsales/public_html/product.php(38): getAllFrom('*', 'product', 'WHERE status=1 ...', 'ORDER BY RAND()...')
#2 /home1/carrieregsales/public_html/index.php(104): include('/home1/carriere...')
#3 {main}
thrown in /home1/carrieregsales/public_html/init.php on line 222