Notice: Undefined variable: ofs3SQL in E:\www.officestationery.co.uk\controllers\ProductListController2014.php on line 658

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 'AND `Name` > '' AND `Value` != 'Yes' AND `Value` != 'No' GROUP BY `Name`,`Value' at line 17' in E:\www.officestationery.co.uk\controllers\ProductListController2014.php:664 Stack trace: #0 E:\www.officestationery.co.uk\controllers\ProductListController2014.php(664): PDO->query('SELECT `Name`,`...', 2) #1 E:\www.officestationery.co.uk\controllers\ProductListController2014.php(787): ProductListController->levelOneAction() #2 {main} thrown in E:\www.officestationery.co.uk\controllers\ProductListController2014.php on line 664