Parse error: syntax error, unexpected 'endif' (T_ENDIF) in /home/diesel20/public_html/app/design/frontend/dieselcranks/default/template/catalog/product/view.phtml on line 160

Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[HY000]: General error: 1206 The total number of locks exceeds the lock table size' in /home/diesel20/public_html/lib/Zend/Db/Statement/Pdo.php:228 Stack trace: #0 /home/diesel20/public_html/lib/Zend/Db/Statement/Pdo.php(228): PDOStatement->execute(Array) #1 /home/diesel20/public_html/lib/Varien/Db/Statement/Pdo/Mysql.php(110): Zend_Db_Statement_Pdo->_execute(Array) #2 /home/diesel20/public_html/app/code/core/Zend/Db/Statement.php(291): Varien_Db_Statement_Pdo_Mysql->_execute(Array) #3 /home/diesel20/public_html/lib/Zend/Db/Adapter/Abstract.php(480): Zend_Db_Statement->execute(Array) #4 /home/diesel20/public_html/lib/Zend/Db/Adapter/Pdo/Abstract.php(238): Zend_Db_Adapter_Abstract->query('DELETE FROM `co...', Array) #5 /home/diesel20/public_html/lib/Varien/Db/Adapter/Pdo/Mysql.php(504): Zend_Db_Adapter_Pdo_Abstract->query('DELETE FROM `co...', Array) #6 /home/diesel20/public_html/lib/Zend/Db/Adapter/Abstract.php(664): Varien_Db_Adapter_Pdo_Mysql->query('D in /home/diesel20/public_html/lib/Zend/Db/Statement/Pdo.php on line 235